SonarQube 多种类型的测试
SonarQube multiple type of tests
在我的项目中,我使用两种类型的测试:nunit 和 mstest。
在我的项目构建服务器中,我有构建步骤:
"%SonarQube.Scanner.MSBuild.exe%" begin /k:"%sonar.proj.key%" /n:"%sonar.proj.name%" /v:"%sonar.proj.version%" /d:sonar.cs.nunit.reportsPaths="NUnitResults.xml" /d:sonar.cs.vstest.reportsPaths="MSTestResults.trx"
但我总是有 mstests 的指标,在构建日志中我没有看到任何关于通过 sonarqube 解析 NUnitResults 的信息。问题:sonarqube 支持解析和分析两种类型的测试?
"You can import reports from different tools by passing several
/d:propertyKey="path" arguments (with different property keys) to the
MSBuild.SonarQube.Runner.exe begin command"
来自Unit Test Execution Results Import (C#, VB.NET)
出于兴趣,您是在同一个 MSBuild 项目中使用两个不同的测试框架,还是在不同的 MSBuild 项目中使用不同的框架?
在我的项目中,我使用两种类型的测试:nunit 和 mstest。 在我的项目构建服务器中,我有构建步骤:
"%SonarQube.Scanner.MSBuild.exe%" begin /k:"%sonar.proj.key%" /n:"%sonar.proj.name%" /v:"%sonar.proj.version%" /d:sonar.cs.nunit.reportsPaths="NUnitResults.xml" /d:sonar.cs.vstest.reportsPaths="MSTestResults.trx"
但我总是有 mstests 的指标,在构建日志中我没有看到任何关于通过 sonarqube 解析 NUnitResults 的信息。问题:sonarqube 支持解析和分析两种类型的测试?
"You can import reports from different tools by passing several /d:propertyKey="path" arguments (with different property keys) to the MSBuild.SonarQube.Runner.exe begin command"
来自Unit Test Execution Results Import (C#, VB.NET)
出于兴趣,您是在同一个 MSBuild 项目中使用两个不同的测试框架,还是在不同的 MSBuild 项目中使用不同的框架?