forked from bkoelman/CSharpGuidelinesAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coverage.bat
14 lines (12 loc) · 833 Bytes
/
coverage.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@echo off
rd /s /q coverage 2>nul
md coverage
set configuration=Debug
set opencover="%USERPROFILE%\.nuget\packages\OpenCover\4.6.519\tools\OpenCover.Console.exe"
set reportgenerator="%USERPROFILE%\.nuget\packages\ReportGenerator\3.1.0\tools\ReportGenerator.exe"
set testrunner="%USERPROFILE%\.nuget\packages\xunit.runner.console\2.3.1\tools\net452\xunit.console.x86.exe"
set target=".\src\CSharpGuidelinesAnalyzer\CSharpGuidelinesAnalyzer.Test\bin\%configuration%\net46\CSharpGuidelinesAnalyzer.Test.dll -noshadow"
set filter="+[CSharpGuidelinesAnalyzer*]* -[CSharpGuidelinesAnalyzer.Test*]*"
set coveragefile=".\coverage\CodeCoverage.xml"
%opencover% -register:user -target:%testrunner% -targetargs:%target% -filter:%filter% -hideskipped:All -output:%coveragefile%
%reportgenerator% -targetdir:.\coverage -reports:%coveragefile%