Testing Elixir (PragProg)

We encourage folks to define their unit as a discreet piece of their application that can be tested. If a local dependency is purely functional and well tested, don’t isolate your code. If the response from the dependency won’t be predictable, isolate your code. We cover a few different ways to isolate your code and we suggest Mox when you need to use a double.

We don’t teach TDD. All of the patterns were show are compatible because I TDD everything, but that’s not the point of the book.

Honestly, having read your posts, you sound like you’ve formed a pretty strong foundation and during opinions. I’m not sure how much you would gain from the book.

Don’t get me wrong, there are likely things that you might learn and like, but you might have to look for them between things you know or disagree with.

Happy to try to be more specific if you have questions.

1 Like