Menu

#7 Annotation-based filtering support

open
5
2009-07-03
2009-07-03
No

It would be prerty cool to have the possibility to declare parts, which are not desired to be counted into CodeCover's coverage measurements, directly in the source code - and not in the tool. Here are some thoughts:

- the developer should be able to add a @DontMeasureCoverage annotation in the class or method. CodeCover could also allow to specify which measures to skip, but an All-Or-Nothing approach would be perfect for the beginning.
- codecover automatically turns on filtering for this class or method and displays the coverage as "skipped" in the coverage summary and also in the detailed reports.
- this functionality should be configurable in codecover, so that CodeCover could also ignore those annoatations completely and process the code like it is doing that now (as of Version 1.001).

This would make testing of code with large amounts of deprecated methods, auto-generated parts etc. much more pleasant.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB