sonar-project.properties文件中的问题

时间:2012-12-24 07:35:28

标签: java sonarqube

我正在研究Java.Sonar服务器,sonar-runner对我来说很好。

这是我的sonar-project.properties文件。

   # 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

当我运行sonar-server时,http://localhost:9000/然后它在源目录下显示类,但它没有显示测试目录下的类。

请指导我,如何解决这个问题。

1 个答案:

答案 0 :(得分:1)

实际上,目前没有直接访问单元测试源文件的方法,例如从“组件”页面,请参阅http://jira.codehaus.org/browse/SONAR-4036。目前,访问单元测试源文件的唯一方法是从项目仪表板中单击单元测试的数量,但这需要导入单元文本执行报告。

相关问题