Johan Janssen (Info Support) @johanjanssen42
Pim Hazebroek (Info Support) @pimhazebroek
SonarQube basic features
Some more advanced features
Tips / summary
QuestionsQuestions
Platform to manage code quality
Open source, possible to pay for support and some
plugins
Since 2006; now they have 200 customers andSince 2006; now they have 200 customers and
SonarQube is used in 15.000 organizations
Active community: support, plugins, books
Add integration test coverage widget to SonarQube
Download Jacoco agent
Configuration for Tomcat’s catalina.bat:
set JACOCO=-set JACOCO=-
javaagent:$path$libjacocoagent.jar,
destfile=$resultpath$jacoco.exec,
append=false,includes=com.dockerpi.*
set JAVA_OPTS=%JAVA_OPTS% %JACOCO%
Start Tomcat
Execute tests (manual, integration, performance…)
Stop Tomcat and execute SonarQube analysis
mvn clean install sonar:sonarmvn clean install sonar:sonar
-Dsonar.dynamicAnalysis=reuseReports
-Dsonar.jacoco.itReportPath=
$resultpath$jacoco.exec
Supports incremental analyses (default)
Install plugin through Eclipse Marketplace
Configure SonarQube server:
o Window -> Preferences -> SonarQube -> Serverso Window -> Preferences -> SonarQube -> Servers
o Right click on your project in the Project Explorer
o Configure -> Associate with SonarQube
“Once we accept our limits, we go beyond them.”
- Albert Einstein- Albert Einstein
http://blogs.infosupport.com/javaland
Ask us!
SonarQube dev /user mailinglist
Sonarqube.orgSonarqube.org
Nemo example dashboard
SonarQube books
johan.janssen@infosupport.com
pim.hazebroek@infosupport.com
@johanjanssen42 @pimhazebroek

JavaCro'15 - Beyond the basics of SonarQube improve your Java(Script) code even further - Johan Janssen, Pim Hazebroek

  • 1.
    Johan Janssen (InfoSupport) @johanjanssen42 Pim Hazebroek (Info Support) @pimhazebroek
  • 2.
    SonarQube basic features Somemore advanced features Tips / summary QuestionsQuestions
  • 6.
    Platform to managecode quality Open source, possible to pay for support and some plugins Since 2006; now they have 200 customers andSince 2006; now they have 200 customers and SonarQube is used in 15.000 organizations Active community: support, plugins, books
  • 24.
    Add integration testcoverage widget to SonarQube Download Jacoco agent Configuration for Tomcat’s catalina.bat: set JACOCO=-set JACOCO=- javaagent:$path$libjacocoagent.jar, destfile=$resultpath$jacoco.exec, append=false,includes=com.dockerpi.* set JAVA_OPTS=%JAVA_OPTS% %JACOCO%
  • 25.
    Start Tomcat Execute tests(manual, integration, performance…) Stop Tomcat and execute SonarQube analysis mvn clean install sonar:sonarmvn clean install sonar:sonar -Dsonar.dynamicAnalysis=reuseReports -Dsonar.jacoco.itReportPath= $resultpath$jacoco.exec
  • 33.
    Supports incremental analyses(default) Install plugin through Eclipse Marketplace Configure SonarQube server: o Window -> Preferences -> SonarQube -> Serverso Window -> Preferences -> SonarQube -> Servers o Right click on your project in the Project Explorer o Configure -> Associate with SonarQube
  • 40.
    “Once we acceptour limits, we go beyond them.” - Albert Einstein- Albert Einstein
  • 41.
    http://blogs.infosupport.com/javaland Ask us! SonarQube dev/user mailinglist Sonarqube.orgSonarqube.org Nemo example dashboard SonarQube books johan.janssen@infosupport.com pim.hazebroek@infosupport.com @johanjanssen42 @pimhazebroek