2017-06-26 92 views
1

無論我選擇什麼樣的目標,從打開蓋子輸出始終顯示來自(Coverage.xml)組件:打開蓋運行覆蓋xunit.runner.utility.dotnet

<ModulePath>C:\Users\XXX\.nuget\packages\xunit.runner.utility\2.2.0-beta2-build3300\lib\netstandard1.1\xunit.runner.utility.dotnet.dll</ModulePath> 
<ModuleTime>2016-06-27T13:43:52Z</ModuleTime> 
<ModuleName>xunit.runner.utility.dotnet</ModuleName> 

我的批處理文件:

@echo off 

SET dotnet="C:/Program Files/dotnet/dotnet.exe" 
SET opencover=C:\Users\XXX\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe 

SET targetargs="test c:\SfmcAdapter\trunk\dotnet_core\sfmc_adapter\test\SFMC.Adapter.Service.Tests" 
SET filter="+[*]*" 
SET coveragefile=Coverage.xml 
SET coveragedir=Coverage 

REM Run code coverage analysis 
%opencover% -oldStyle -register:user -target:%dotnet% -output:%coveragefile% -targetargs:%targetargs% -filter:%filter% -skipautoprops -hideskipped:All 

我希望它能拿起我的裝配覆蓋率,而不是xunit組件。

回答

3

我想通了,確保在project.json文件中debugType設置爲滿。然後我能看到報道。以前這被設置爲「便攜式」。

"debugType": "full"