Skip to content

Simple spring application which is configured for reporting unit and integration tests coverage to sonarqube by jacoco

Notifications You must be signed in to change notification settings

ArshiyaBegum1/sonarqube-jacoco-maven-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Example of usage unit and integration test coverage reports in SonarQube

For publishing jacoco reports to sonarqube setup new profile with your credentials in local ~/.m2/settings.xml file:

<profile>
  <id>sonar</id>
  <activation>
    <activeByDefault>true</activeByDefault>
  </activation>
  <properties>
    <sonar.jdbc.url>
      jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8
    </sonar.jdbc.url>
    <sonar.jdbc.username>sonar</sonar.jdbc.username>
    <sonar.jdbc.password>sonar</sonar.jdbc.password>
    <sonar.host.url>http://localhost:9000</sonar.host.url>
  </properties>
</profile>

Run mvn -Prun-its clean install && mvn sonar:sonar

Checkout project dashboard in SonarQube

About

Simple spring application which is configured for reporting unit and integration tests coverage to sonarqube by jacoco

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%