Friday 2 October 2009
Calculating How Much Time You Spend Writing Tests
By Maxime Biais, Friday 2 October 2009 at 23:39 :: Misc
I like testing piece of code I write. Because I often rewrite things, optimize and try to make things better (maybe i'm bad in doing the best thing at first time ?). When I'm working, I have constraints : time, coworkers, boss. In some of the companies I worked for, tests were only an option on particular code. I'm trying to convince that testing everything is good (In my current job, I'm actualy happy about that, because I'm not the only one who want to write tests
). I never had the idea to do that, but I think this is something I should have done before : calculating how much time you spend testing.
The estimation done by the author reveals a 10% of his time writing tests and 90% writing the actual software :
The number of hours spent on the project is my best estimate, as I have not kept track of these numbers. Also, the 10% breakdown comes from keeping track of my coding habits for the last two weeks of coding. But, these are my best guesses.



