Menu

#74 Report on lines of code executed per test

open
nobody
None
5
2009-09-13
2009-09-13
sixmute
No

Good unit tests are usually short and test only a handful of methods. It would be very useful to be able to report the number of lines of code executed per unit test. Doing this would allow users to identify and fix unit tests that are testing inappropriately large amounts of code.

This could be done by identifying test classes and instrumenting them to record the total lines executed at the start of the test and at the end of test.

Discussion