我們正在運行SonarQube(5.0.1),在TFS(2010)團隊版本上使用sonar.net-runner。聲吶沒有拾取視覺工作室測試報告路徑
FxCop正常工作,一切運行完美,我看到了聲納中的所有問題。
但是,當我嘗試使用聲吶測試結果時,我遇到了一個問題。
當我將屬性sonar.cs.vstest.reportsPaths
設置爲trx
文件的絕對文件時,它會將我的測試結果發佈到聲納。 大。
但是當我使用通配符時,我的測試結果不會在聲納中發佈。 不太好
配置我試過。
#1
sonar.cs.vstest.reportsPaths=E:/Builds/1/74/TestResults/*.trx
#2
sonar.cs.vstest.reportsPaths=TestResults/*.trx
#3
sonar.cs.vstest.reportsPaths=**/*.trx
#4
sonar.cs.vstest.reportsPaths=.**/*.trx
滿配置
# ----- Project identification
sonar.projectVersion=2.6.0.0914
sonar.projectName=MySolution
sonar.projectKey=Company:MySolution
# ----- Use UTF-8 encoding, otherwise analysis is unable to read files
sonar.sourceEncoding=UTF-8
# ----- Visual studio bootstrapper
# Enable the Visual Studio bootstrapper
sonar.visualstudio.enable=true
#Define the solution to run sonar against
sonar.visualstudio.solution=MySolution.sln
#Specify the pattern of the test projects
sonar.visualstudio.testProjectPattern=.*Test*.
#We are using custom output paths.
sonar.visualstudio.outputPaths=E:/Builds/1/74/Binaries
# ----- FxCop
sonar.cs.fxcop.aspnet=false
sonar.cs.fxcop.fxCopCmdPath=D:/Sonar.NET/FxCop/FxCopCmd.exe
# ----- Unit Test Results
sonar.cs.vstest.reportsPaths=.**/*.trx.
# This property is set because it is required by the SonarQube Runner.
# But it is not taken into account because the location of the source
# code is retrieved from the .sln and .csproj files.
sonar.sources=.
您是否對您的問題有任何更新? – rajcool111 2015-07-05 21:47:07
我試過使用「sonar.cs.vstest.reportsPaths = TestResults/*。trx」,但沒有運氣。 – rajcool111 2015-07-05 21:47:34