Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 Sonar 3.0.1 与 C-Sharp Plugins Ecosystem 插件一起使用。
使用 Simple Java Runner 运行分析时,我没有收到任何测试覆盖率报告,而是 Gallio 打印以下错误。
错误 cgTestReportSensor - 找不到测试报告的源文件
这个文件意味着如果我有文件 Calc.cs 和 TestCalc.cs,Gallio 找不到前者,因此无法生成任何覆盖率报告。
我遵循默认的测试项目命名约定,Sonar 很容易将我的测试项目限定为一个。
通常,此类错误意味着 Gallio 在执行单元测试时使用的程序集在运行 Sonar 之前没有“新”编译或移出标准“bin/debug”文件夹。