0% code coverage everywhere

Problems with syntetic code benchmarks like sonar (with coberture) often link to problematic project configuration. It took me at least few moths to find source of “0% code coverage” problem in one of my sonar projects. Solution was in fact accidental (side effect of project pom clean up) because it was related with wrong plugin configuration / management.

First of all use plugin / dependency management – it will automatically protect you against multi version conflicts (in mentioned project surefire plugin was used in 3 different versions ).

Keep your configuration clean and simple – avoid copy & paste plugin configuration (Why o why did I copy such surfire configuration ??? – i.e. below configuration is not compatible with 2.3 version)

 maven-surefire-plugin
2.3
never
false
false

3 thoughts on “0% code coverage everywhere

  1. My coder is trying to persuade me to move to .net
    from PHP. I have always disliked the idea because of the costs.

    But he’s tryiong none the less. I’ve been using Movable-type on various websites for about a year
    and am nervous about switching to another platform.
    I have heard fantastic things about blogengine.net.
    Is there a way I can import all my wordpress
    posts into it? Any help would be really appreciated!

Leave a Reply to FrAmE30. Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.