1 min readDec 2, 2019
This happens to me, that I test for the wrong thing. But it happened to me a lot more often when I started testing but before adopting TDD.
It’s not enough for the test to fail, it should fail for the right reason. You can always write a test that fails depending on a pseudorandom number. That does nothing to discredit TDD.