15 ms·
This whole debate is getting wildly out of hand. Just because someone says 'I don't unit test' doesn't mean they're not testing their code. Most code spends 8
by davidsiems 16y ago
This whole debate is getting wildly out of hand.
Just because someone says 'I don't unit test' doesn't mean they're not testing their code.
Most code spends 80% of its execution time in 20% of the code. Test that code and fix the outlying bugs as they come up.
Most of the hard bugs crop up where subsystems interact. The bugs inside the subsystems themselves are usually pretty easy to spot and fix.
The goal isn't to produce a 100% tested product that you can have supreme confidence in when you deploy. The goal is to provide a reliable service that people are going to pay you for. It turns out people pay for things that aren't perfect all the time.
Every line of code you write comes with a maintenance tax. This includes your test code. This is a fact.
Unit testing is a tool. Use it wisely and it will help you. Using it for everything is overkill.
Come to terms with the fact that there will be bugs, no matter how much you test.