3 ms·
> Breaking existing tests is rare. I don't mind some detective work when it happens. You start with a pretty strong lead, anyway: whatever you touched since the
by ThePadawan 6y ago
> Breaking existing tests is rare. I don't mind some detective work when it happens. You start with a pretty strong lead, anyway: whatever you touched since the last time the test passed.
You describe the exact situation where the advice is not helpful at all.
Now imagine a large, very tightly interwoven codebase where in fact, making changes to a section of code breaks tests on the complete other side of the application.
If you don't follow that advice, you are immediately blocked, and pretty much at the mercy of someone else fixing their test (probably to be less needlessly specific or less assertive after changing requirements).
If they structured their test in a way that makes it clear why it should fail, you have the chance to investigate yourself how this contradicts with your changes.
- rightbyte 6y agoThat's a organization problem (bunkers, are they called silos?) not a coding problem. I wish people would specify their coding advice with "advice for big projects with square process", "advice for dysfunctional planning", "advice for small team" etc.
- throwaway_pdp09 6y ago> very tightly interwoven Perhaps this is your problem.
- ThePadawan 6y agoOf course. But you can't fix that by testing, only improve how to cope :)
- pydry 6y agoIt's a problem tightly coupled unit testing makes worse.