Quantcast

junit in sonarqube

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

junit in sonarqube

kuki585
Hello everyone,

I am using sonarqube 5.1 and sonar runner 2.4.I want to know how to execute junit in sonarqube.
my sonar.properties file is:
# Required metadata
sonar.projectKey=XMLHelloWorld
sonar.projectName=HelloWorld Project with Oracle Database and Hudson
sonar.projectVersion=1.0

# Comma-separated paths to directories with sources (required)
sonar.sources=C:/Users/anankurj/.hudson/jobs/HelloWorld Analysis with hudson/workspace/HelloWorld/src
sonar.binaries=C:/Users/anankurj/.hudson/jobs/HelloWorld Analysis with hudson/workspace/HelloWorld/bin
#sonar.junit.reportsPath=C:/Users/anankurj/.hudson/jobs/HelloWorld Analysis with hudson/workspace/HelloWorld/reports
sonar.tests=C:/Users/anankurj/.hudson/jobs/HelloWorld Analysis with hudson/workspace/HelloWorld/test
#sonar.libraries=C:/Users/anankurj/Downloads/commons-logging-1.2-bin/commons-logging-1.2
#D:/splV6/C1/2.2.0/Code/tools/jdk1.6.0_20/jre/lib
#sonar.libraries=D:/splV6/C1/2.2.0/Code/tools/jdk1.6.0_20/jre/lib,D:/splV6/C1/2.2.0/Code/modules/c1/lib
# Language
sonar.language=java
#sonar.language=xml
# Encoding of the source files
sonar.sourceEncoding=UTF-8

i have provided my test cases in test folder but i am not able to see any reports being generated from these test cases in sonarqube dashboard.

Thanks and regards,
Ankur Jain
Loading...