#10 Allow to check classes that are done testing

open
nobody
None
5
2014-08-15
2005-10-13
No

It would be great if there were a way to mark
individual methods for exclusion -- for example, if I
have a class with a lot of simple getter/setter methods
that just wrap private instance variables, I don't
really care if I have 100% coverage of them since I
know they're going to be bug-free unless the Java
compiler is buggy. But right now Coverlipse treats them
as uncovered code and drops my coverage percentages
down low, even if my test actually does cover all the
code in the class that does real work.

Java 5 annotations seem like a natural fit. Or maybe a
static String[] that contains a list of "don't care"
methods.

Discussion

  • Matthias Kempka

    Matthias Kempka - 2005-11-29

    Logged In: YES
    user_id=736381

    See
    http://sourceforge.net/forum/forum.php?thread_id=1367409&forum_id=472861
    for comments.

    Conclusion: There won't be a feature that allows to mark
    code snippets as "ignore". The task of Coverlipse is to show
    untested code as such!

    However, I see the need give classes a marker that shows
    they are done testing. I have added this to the feature
    request "improve class view usability".

     
  • Matthias Kempka

    Matthias Kempka - 2005-11-29
    • summary: Declarative exclusions --> Allow to check classes that are done testing
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks