Link Details

Link 902187 thumbnail
User 254602 avatar

By nwbrown
Submitted: Jan 07 2013 / 19:55

What happens when you run a code coverage tool against your test suite and you see some trivial methods, such as getters and setters in java, are not being covered? The novice developer will probably add a simple test to make sure the getters and setters do get and set the value they are, well, getting and setting. The intermediate developer will claim those tests are pointless and just leave the gap, and maybe write a blog post about how stupid code coverage is. The advanced developer will simply delete those methods, they were not needed anyway.
  • 3
  • 0
  • 197
  • 44

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Upvoters (3)

Downvoters (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java