maven - sonarqube displays 0 unit tests data coverage -


trying see unit test code coverage on sonar. using jacoco code coverage , able code coverage project when execute code in eclipse. while running in jenkins, following messages , warnings no tests run , no sources compile

i can code coverage report on sonar unit tests shows. how can sonar display coverage unit tests? how can eliminate warning messages?

attaching surefire , jacoco plugins , jebnkins console log

kindly

<plugin>   <groupid>org.jacoco</groupid>   <artifactid>jacoco-maven-plugin</artifactid>   <version>0.6.4.201312101107</version>   <executions>     <execution>       <id>prepare-unit-test-agent</id>         <goals>           <goal>prepare-agent</goal>         </goals>     </execution>     <execution>       <id>generate-unit-test-report</id>         <goals>           <goal>report</goal>         </goals>     </execution>    </executions> </plugin>        <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-surefire-plugin</artifactid>                 <version>2.12.4</version>                 <dependencies>                     <dependency>                         <groupid>org.apache.maven.surefire</groupid>                         <artifactid>surefire-junit47</artifactid>                         <version>2.12.4</version>                     </dependency>                     <dependency>                         <groupid>org.apache.maven.surefire</groupid>                         <artifactid>surefire-testng</artifactid>                         <version>2.12.4</version>                     </dependency>                 </dependencies>                 <configuration>                         <systempropertyvariables>                         <environment>${env.user}</environment>                     </systempropertyvariables>                           </configuration>                 </plugin>   [info] scanning projects... [info]                                                                          [info] ------------------------------------------------------------------------ [info] building project test 0.0.1-snapshot [info] ------------------------------------------------------------------------ [info]  [info] --- maven-clean-plugin:2.5:clean (default-clean) @ project test --- [info] deleting /users/ray1/.jenkins/jobs/try10-aprl13/workspace/target [info]  [info] --- jacoco-maven-plugin:0.6.4.201312101107:prepare-agent (prepare-unit-test-agent) @ project test --- [info] argline set -javaagent:/users/ray1/.m2/repository/org/jacoco/org.jacoco.agent/0.6.4.201312101107/org.jacoco.agent-0.6.4.201312101107-runtime.jar=destfile=/users/ray1/.jenkins/jobs/try10-aprl13/workspace/target/jacoco.exec [info]  [info] --- maven-resources-plugin:2.6:resources (default-resources) @ project test --- [info] using 'utf-8' encoding copy filtered resources. [info] skip non existing resourcedirectory /users/ray1/.jenkins/jobs/try10-aprl13/workspace/src/main/resources [info]  [info] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ project test--- [info] no sources compile [info]  [info] --- maven-resources-plugin:2.6:testresources (default-testresources) @ project test --- [info] using 'utf-8' encoding copy filtered resources. [info] skip non existing resourcedirectory /users/ray1/.jenkins/jobs/try10-aprl13/workspace/src/test/resources [info]  [info] --- maven-compiler-plugin:2.5.1:testcompile (default-testcompile) @ project test --- [info] no sources compile [info]  [info] --- maven-surefire-plugin:2.12.4:test (default-test) @ project test --- [info] no tests run. [jenkins] recording test results [info]  [info] --- maven-surefire-plugin:2.12.4:test (run-unit-tests) @ project test --- [info] no tests run. [info] skipping execution of surefire because has been run configuration [jenkins] recording test results [info]  [info] --- maven-jar-plugin:2.4:jar (default-jar) @ project test --- [warning] jar empty - no content marked inclusion! [info] building jar: /users/ray1/.jenkins/jobs/try10-aprl13/workspace/target/project test-0.0.1-snapshot.jar [info]  [info] --- jacoco-maven-plugin:0.6.4.201312101107:report (generate-unit-test-report) @ project test --- [info] skipping jacoco execution due missing execution data file [info]  [info] --- maven-install-plugin:2.4:install (default-install) @ project test --- [info] installing /users/ray1/.jenkins/jobs/try10-aprl13/workspace/target/project test-0.0.1-snapshot.jar /users/ray1/.m2/repository/com/company/taf/project test/0.0.1-snapshot/project test-0.0.1-snapshot.jar [info] installing /users/ray1/.jenkins/jobs/try10-aprl13/workspace/pom.xml /users/ray1/.m2/repository/com/company/taf/project test/0.0.1-snapshot/project test-0.0.1-snapshot.pom [info] ------------------------------------------------------------------------ [info] build success [info] ------------------------------------------------------------------------ [info] total time: 6.801 s [info] finished at: 2015-04-14t10:25:50-07:00 [info] final memory: 15m/81m [info] ------------------------------------------------------------------------ waiting jenkins finish collecting data [jenkins] archiving /users/ray1/.jenkins/jobs/try10-aprl13/workspace/pom.xml com.company.inner/project test /0.0.1-snapshot/project test-0.0.1-snapshot.pom [jenkins] archiving /users/ray1/.jenkins/jobs/try10-aprl13/workspace/target/project test-0.0.1-snapshot.jar com.company.inner/project test /0.0.1-snapshot/project test-0.0.1-snapshot.jar channel stopped finished: success 


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -