3 ms·
Coverage tools are not sufficient for getting good test coverage. One can easily make code 'covered' without having proper tests for them. By writing tests ear
by _ikke_ 10y ago
Coverage tools are not sufficient for getting good test coverage. One can easily make code 'covered' without having proper tests for them.
By writing tests early, you make sure the code you are testing is testable and your knowledge about the code is fresh.
- lomnakkus 10y ago> By writing tests early, you make sure the code you are testing is testable and your knowledge about the code is fresh. IME you also end up writing tests which are far too tied to the implementation. (With the resulting churn that that implies when the implementation changes.) You get far more mileage from QuickCheck-type tests IME. Granted, not everything is very amenable to testing using QC-type tests, but a lot of stuff is.