0

我正在使用 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

当我运行声纳服务器时,http://localhost:9000/它显示源目录下的类,但它没有显示测试目录下的类。

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

4

1 回答 1

1

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

于 2012-12-26T18:00:02.837 回答