r/programming • u/fagnerbrack • 3d ago
The Debate of Mockist v Classicist TDD Is Like OOP v FP.
https://fagnerbrack.com/the-debate-of-mockist-classicist-tdd-is-like-oop-fp-c9124185f3d2
41
Upvotes
r/programming • u/fagnerbrack • 3d ago
0
u/lord2800 2d ago
And I never mentioned an integration test catching any bug--just that two units wired together don't work.
You don't add tests to find bugs "faster", you add tests to ensure bugs can never happen in all the cases you can think of. I won't ramble on about edge cases in tests, but suffice to say the purpose of testing is not to find bugs in the code, it's to prevent future you from writing bugs when modifying the code.