简体   繁体   中英

issue in sonar-project.properties file

I am working on Java.Sonar server,sonar-runner is working fine for me.

Here is my sonar-project.properties file.

   # Root project information
   sonar.projectKey=Sonar:ProjectKey
   sonar.projectName=ProjectName
   sonar.projectVersion=1.0-SNAPSHOT
   # Some properties that will be inherited by the modules   
   sonar.sources=/root/helios/ProjectName/src
   # Redefine properties
   # Note that you do not need to prefix the property here
   #sonar.projectName=Module 2
   # Comma-separated paths to test source directories (optional)
   sonar.tests=/root/helios/ProjectName/test
   #The value of the property must be the key of the language.
   sonar.language=java

When I run sonar-server, http://localhost:9000/ then it is showing classes under source directory but it is not showing classes under test directory.

Please guide me,how to fix this issue.

Indeed, there is currently no direct way to access to the unit test source files, for instance from the "Components" page, see http://jira.codehaus.org/browse/SONAR-4036 . For the time being, the only way to access to a unit test source file is by clicking on the number of unit test from a project dashboard but this requires to import a unit text execution report.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM