4 ms·
I don't see how linting and experience prevents logic errors, missed corner cases, or misunderstandings of the requirements. In my experience integration tests
by adrianN 8y ago
I don't see how linting and experience prevents logic errors, missed corner cases, or misunderstandings of the requirements. In my experience integration tests are crucial to robust software.
- TeMPOraL 8y agoThat's true. Regression tests are also useful. But TDD is about neither, it's about test-first approach at the unit test level, which is arguably less useful and leads to design by random walk.
- spricket 8y agoIt does nothing for missed requirements, but in my experience the test will be wrong if the requirements are anyways. I don't disagree with integration tests, which are usually just running the software through the motions in a semi automated way. I just think unit tests are pretty useless with good linting. You might be surprised how much bad logic static analyzers can catch though.
- BigJono 8y agoI don't see how unit testing prevents that stuff either. How do you write a unit test for a corner case if you've missed it? If you're aware of it's existence, why not just update the code to handle it?
- adrianN 8y agoQuickcheck like libraries are reasonably good at finding missing corner cases in my code. It also helps if the person writing the test is different from the person writing the code and the person writing the requirement.