Not getting the coverage on new code in sonar dashboard

I am trying to use scm activity plugin 1.8 for clearcase and
using sonar 4.3.3 and got the blame information in the sonar but did not
getting the coverage on new code in dashboard

  • ClearCase advantages/disadvantages
  • preserving history when using mercurial ontop of clearcase
  • Clearcase is so slow on checkin: how quickly checkin a large set of modified files?
  • How would you measure inserted / changed / removed code lines (LoC)?
  • Team Foundation Server and branching characteristics, compared to others
  • Does another version control system have a ClearCase-like filesystem access to file versions?
  • git plugin for Jenkins fails to clone a repo from local machine. Error code 128
  • Need XSL file to convert internal xml tests format to Junit format (xUnit Plugin for jenkins)
  • How to bridge git to ClearCase?
  • JiraTestResultReporter.JiraReporter aborted due to exception error in Jenkins
  • Jenkins security - hide all screens unless user is logged in
  • Xcode, Codesign Error from Jenkins / SSH - “User Interaction is not allowed”
  • One Solution collect form web for “Not getting the coverage on new code in sonar dashboard”

    You should add Code Coverage Tool to your build process. If you use Maven, then you can add:

    <build>
        ...
        <plugins>
            ...
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.5.201505241946</version>
                <executions>
                    <execution>
                        <id>jacoco-initialize</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <rules>
                        <rule>
                            <element>CLASS</element>
                            <excludes>
                                <exclude>*Test</exclude>
                            </excludes>
                        </rule>
                    </rules>
                </configuration>
            </plugin>
        </plugins>
        ...
    </build>
    
    Git Baby is a git and github fan, let's start git clone.