qickrooms / flexcover

Automatically exported from code.google.com/p/flexcover
0 stars 0 forks source link

Request: Exclude private methods and "tagged" methods #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to see some option to exclude private methods from the
percentage of covered code. I am trying to 100% cover the public methods of
an API, but all the private methods are listed there at 0% screwing up my
statistics. There are also some public methods which will be removed from
the API in future versions so they don't need to be covered, too. I would
appreciate to have a feature to tag these "unused" functions so they are
not listed in the coverage viewer any longer.

What version of the product are you using?
flexcover-0.81

Original issue reported on code.google.com by tgue...@adobe.com on 22 Apr 2009 at 11:24

GoogleCodeExporter commented 8 years ago
A lot of people have asked for some sort of "tagging" of methods to be excluded 
and I
believe this is very similar in spirit to Issue 9.  However, I don't think 
private
methods should be excluded as a blanket option.  If you have private methods 
that are
not getting called by your testing, doesn't that mean that one's testing is not
exercising the public methods sufficiently?

Original comment by joseph.b...@gmail.com on 22 Apr 2009 at 2:36

GoogleCodeExporter commented 8 years ago
I agree concerning the private methods. But some sort of tagging would really be
fine, for example to exclude methods which are defined in a custom namespace so 
they
aren't accessable to the end user or as i already mentioned for methods which 
will be
removed / changed soon and don't need to be covered.

Original comment by tgue...@adobe.com on 22 Apr 2009 at 3:14