We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Comparing Testing Approaches in Elixir Development
229
clicks
Source: reddit.com
The content by Armanm delves into the topic of Test-Driven Development (TDD) in Elixir, contrasting the two primary testing methodologies from Object-Oriented Programming (OOP)—the Detroit (aka Classic or Chicago) and London approaches. The Detroit approach focuses on asserting the output from a specific input without placing much emphasis on the interaction between components, whereas the London approach builds upon this by advocating for the use of mocks to ensure the correct interactions between components. Armanm expresses a preference for the Detroit style due to its lower coupling with implementation details, but acknowledges the practical need for a hybrid of both styles in real-world scenarios. They speculate that Classic techniques may be more naturally aligned with Elixir's functional paradigm but highlights the potential drawbacks such as slower test suites when working with databases.
Related posts
© HashMerge 2024