by kardianos · 11mo ago · 0 comments
Yes, it takes longer to run your tests. So be it.
We also have mocks/stubs/spies in our unit tests. Those are great for producing hard-to-trigger edge cases. But contract testing? The contract is the data flow. In the end it’s all about using the right tool for the right test. There is no one-size-fits-all.
We also have mocks. It’s not one way or the other. This post is talking about the mocking side of things.
If you have SQL scattered all over the place... Leave the spaghetti for dinner.