by daleharvey · 11y ago · 0 comments
As a student / recent grad I remember thinking that testing was maybe some thing you maybe had to do for super hardcore projects. Now I see it as one of the first things to think about on a serious project and something that is going to take ~30 - 50% of the cost / effort.
Even if the tests are covering mundane, easy functions and execution paths, the benefit of not worrying if you broke something far outweighs the time to write tests.
Tests are compared with the API every time they're run, as seen by the computer's model of execution, giving immediate feedback on detected discrepancies.
(I believe that Pythonistas have clever docs that can encode snippets of testing into documentation, which splits the difference a bit, but is no substitute for a robust test suite).
I'm not an advocate of TDD though, and I agree that more effort should be put into how to test.
Wrong. I could name three managers who have from personal experience.
> it is however very obviously a useful metric.
Disagree. I think it's an actively counterproductive metric, and one is better off not measuring it at all.