From: SourceForge.net <no...@so...> - 2013-03-13 04:41:12
|
Feature Requests item #3098010, was opened at 2010-10-29 00:32 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720018&aid=3098010&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: lindsal (lindsal) Assigned to: Nobody/Anonymous (nobody) Summary: A way to ignore certain methods/lines in report Initial Comment: I have been using cobertura for around a month, so am a relative newbie. A feature I would find very useful is a way to distinguish between (a) untested code that I know about and have decided not to test and (b) untested code that I plan to write tests for. Is there way to do this other than at the class level? If not, I thought a simple way to implement this might be to have a plain text file listing things to ignore. The syntax could something like the following: package.ClassName //ignore whole class package.ClassName.main //ignore main method **.set* //ignore all setter methods in all classes file:package/ClassName.java:20,50,56 //ignore lines 20, 50, 56 in file file:package/ClassName.java:"a = b || c;" //ignore line(s) matching the expression in quotes in file file:**/*.java:assert** //ignore assertions in all files Then in the coverage report, there could be two extra categories: covered ignored and uncovered ignored (which perhaps could be shaded grey). Best, Luke ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2013-03-12 21:41 Message: i cannot say the my good outcome is because the 2 diet pills lingzhi http://udaydiets.cocolog-nifty.com/, due to the fact i generally doing exercise and have good diet regime , but i do really feel differnce just after taking the pill. and weight be lowered more rapidly than usual, as well as it provides me much more energy. i actually like it. ---------------------------------------------------------------------- Comment By: Guile (sunguilin) Date: 2012-12-18 02:37 Message: +1 ---------------------------------------------------------------------- Comment By: John McCabe (john_g_mccabe) Date: 2012-10-12 08:36 Message: I agree with the need; this would be particularly useful for private constructors. There's a workaround described at http://blog.paulhildebrand.nl/java/163/improve-code-coverage-on-private-cronstructors-with-cobertura but it's a little untidy. An extension to the existing ignore tag in the ANT task might work. ---------------------------------------------------------------------- Comment By: songjie dong (dongsj) Date: 2010-11-15 18:34 Message: maybe we could have another mode for instrument because tree pattern would be better for complex ignore rule, what about you guys? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720018&aid=3098010&group_id=130558 |