Our great sponsors
-
goos-code-examples
Code examples from later chapters of Growing Object-Oriented Software, Guided by Tests
-
RR
RR is a test double framework that features a rich selection of double techniques and a terse syntax. ⛺ (by rr)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
A very good way to use mocks (not like illustrated here) is explained in the GOOS book by Freeman and Pryce: http://www.growing-object-oriented-software.com/
I agree with the premise and have taken a [deeper dive](https://github.com/osmyn/Practices/blob/master/UnitTestGuide...) if anyone is interested in learning more about creating tests that aren't brittle. I did this after suffering through poorly written tests that made our team afraid of any refactoring.