Automating Tests in Elixir Projects

I am not entirely sure what you mean by camp, I’ve never read even a single book on testing and I certainly don’t have any time to do that now :smile:. I am entirely practice based on this topic.

I’ve learned to write tests by mistakes mostly. I’ve started with projects that I didn’t write tests for when I was a beginner, then by writing brittle tests, abusing mocks etc. These days I am always adapting tests to the current codebase and team I work with, but things such as mocking business logic need to be motivated very thoroughly for them to be used, as I’ve previously said, modifications to code that are not expected can lead to false positives and a distorted reality between testing environment and code that runs in production.

1 Like