即使我嘗試一個非常簡單的控制檯應用程序與測試,我無法獲得打開封面工作中的過濾器參數。這裏是過濾器 - 我正在爲管理員聯繫OpenCover過濾器不產生任何結果
此:
"C:\Users\Mojo\AppData\Local\Apps\OpenCover\OpenCover.Console.exe"
-output:c:\coverage.xml -register:user
-target:"C:\TEMP\sonarqube-5.1\xunitRunner\xunit.console.exe"
-targetargs:"ConsoleApp.Tests.dll"
-filter:"+[ConsoleApp.*]* -[ConsoleApp.Tests]*"
息率這樣的:
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:\Users\Mojo\AppData\Local\Apps\OpenCover\OpenCover.Console.exe"
-output:c:\coverage.xml -register:user
-target:"C:\TEMP\sonarqube-5.1\xunitRunner\xunit.console.exe"
-targetargs:"ConsoleApp.Tests.dll"
Committing... Visited Classes 8 of 101 (7.92) Visited Methods 20 of 305 (6.56) Visited Points 52 of 1099 (4.73) Visited Branches 27 of 958 (2.82)
==== Alternative Results (includes all methods including those without corresponding source) ==== Alternative Visited Classes 9 of 108 (8.33) Alternative Visited Methods 28 of 416 (6.73)
我的控制檯正在執行項目目錄中的語句。
任何人都可以幫忙嗎?
感謝 中號