https://github.com/SonarSource/sonar-examples.git을 복제 한 다음 SonarSource/sonar-examples/tree/master/projects/languages / csharp에서 명령 프롬프트를 연 다음 "Unit Test 단위 테스트 1 "과 : 실행 가져 오기 (C#을, VB.NET)"내가 할 메트릭/테스트/목록에서"Unit Tests 1"하지만 목록이 비어 있음
MSBuild.SonarQube.Runner.exe begin /k:"org.sonarqube:csharp-simple-sq-scanner-msbuild" /n:"C# :: Simple Project :: SonarQube Scanner for MSBuild" /v:"1.0" /d:sonar.cs.xunit.reportsPaths="%CD%\XUnitResults.xml"
MSBuild.exe /t:Rebuild
packages\xunit.runner.console.2.1.0\tools\xunit.console.exe XUnitProject1\bin\Debug\XUnitProject1.dll -xml %CD%\XUnitResults.xml
MSBuild.SonarQube.Runner.exe end
@ docs.sonarqube.org/pages/viewpage.action?pageId=6389772를) "결과 즉, OK이지만, 아래의 목록이 비어 :
왜?
콘솔에서 관련 부분 :
INFO: Sensor org.sonar.plugins.csharp.CSharpUnitTestResultsProvider$CSharpUnitTestResultsImportSensor
INFO: Parsing the XUnit Test Results file C:\workspace\SonarSource-sonar-examples-92828b2\projects\languages\csharp\XUnitResults.xml
INFO: Sensor org.sonar.plugins.csharp.CSharpUnitTestResultsProvider$CSharpUnitTestResultsImportSensor (done) | time=15ms
이
포함 H2 w SonarQube 5.6 (추가 플러그인 : C# 5.3, StyleCop 1.1)
이