By spm2ot
via sites.google.com
Published: Jul 05 2012 / 09:59
| Subversion | |
| Written by: Lorna Jane Mitchell | |
| Featured Refcardz: Top Refcardz: | |
| 150+ Refcardz Available · Get them all | |
By spm2ot
via sites.google.com
Published: Jul 05 2012 / 09:59
Comments
cafebabe replied ago:
I really don't think it is anyhow useful to measure the quality of the tests in percent of lines.
Markus Sprunck replied ago:
You are absolutely right. It is not a good idea to measure the quality of test code with LOC. This shouldn't be the message of this sample.
If you really like to carefully test your code (and in some cases this is needed) then you need the same or more test code than 'productive code'. This is especially important for effort estimations. In some cases you may need less test code, but the rule of thumb is 50:50 for test and production. By the way I tested this with a larger Spring web application. To test all the code, I needed almost the same ratio.
Jonathan Fisher replied ago:
I agree that LOC is irrelevant. I've been using Branch coverage as a better metric; It's not perfect either though.
Voters For This Link (8)
Voters Against This Link (1)