2017-01-25 5 views
0

SonarQubeカバレッジ値を収集できません。誰にでも私にここで何かが欠落していることを示唆することができますか? ***。Tests.dllファイルが利用可能であることがわかりました。SonarQubeでコードカバレッジが表示されない

enter image description here

Test Files 
    C:\AirSearchBnd\src\Fortius.Air.Search.Tests\bin\Debug\WorldVentures.Fortius.Search.Tests.dll 

Errors and Failures 

1) Invalid : C:\AirSearchBnd\src\Fortius.Air.Search.Tests\bin\Debug\WorldVentures.Fortius.Search.Tests.dll 
File not found: C:\AirSearchBnd\src\Fortius.Air.Search.Tests\bin\Debug\WorldVentures.Fortius.Search.Tests.dll 

Test Run Summary 
    Overall result: Failed 
    Test Count: 0, Passed: 0, Failed: 0, Inconclusive: 0, Skipped: 0 
    Start time: 2017-01-27 03:35:50Z 
    End time: 2017-01-27 03:35:50Z 
    Duration: 0.025 seconds 

Results (nunit3) saved as TestResult.xml 
Committing... 
No results, this could be for a number of reasons. The most common reasons are: 
    1) missing PDBs for the assemblies that match the filter please review the 
    output file and refer to the Usage guide (Usage.rtf) about filters. 
    2) the profiler may not be registered correctly, please refer to the Usage 
    guide and the -register switch. 

C:\AirSearchBnd>exit 0 

Windowsバッチコマンド enter image description here

SonarQubeスキャナはAnnalysis

enter image description here

SonarQubeコードカバレッジ画面

を開始します10

enter image description here

答えて

1

ここで説明するように、MSBuildのコマンドの後にOpenCoverコマンドを実行してみますが、エンド分析の前に:OpenCoverがあるとき Code Coverage Results

+0

テストケースのエラーが発生しました。 – Kally

1

WorldVentures.Fortius.Search.Tests.dllが存在していないようですOpenCover出力で判断して実行します。 Jenkinsの仕事では、OpenCoverバッチスクリプトはMSBuildステップの前に実行されます。ユニットテストがそのMSBuildステップで構築されている場合は、OpenCoverバッチスクリプトステップの前に実行する必要があります。

関連する問題