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

  • How to integrate Clearcase developpement history into Git?
  • Searching ClearCase for a checkin with a specific comment
  • Does it make sense to permanently delete versions from a VCS as part of a normal development process?
  • How would you measure inserted / changed / removed code lines (LoC)?
  • How do you get all files of a VOB as of a given date in a clearcase vob?
  • Change trigger in Clear Case Remote Client
  • How to setup Jenkins with Junit
  • Getting exception while configuring the maven project in jenkins
  • Jenkins Test Result Trend Graph Empty, but Tests Are Run
  • Jenkins Deploy Plugin failing
  • Invoke Ansible playbook in Jenkins
  • Configuring Jenkins to programmatically determine slave at build time from build parameter?
  • 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.