4 ms·
I worked at a place where we wrote the test before the code that implemented the functionality. We wanted to see the test fail, so that we knew it actually tes
by AnimalMuppet 3y ago
I worked at a place where we wrote the test before the code that implemented the functionality. We wanted to see the test fail, so that we knew it actually tested what we thought it did. Then we wrote the code that would make it pass, and verified that the test now passed.
- pavel_lishin 3y agoI definitely do this when fixing bugs - features are harder to do this for, because a lot of code that's written is exploratory.