Skip to content

Commit 603bcdc

Browse files
committed
Return XUnit status code from OpenCover
This change combines the test and code coverage passes to improve overall build performance, without sacrificing accurate test status reporting by AppVeyor.
1 parent 1c2c9e6 commit 603bcdc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ before_build:
99
build:
1010
project: StyleCopAnalyzers.sln
1111
verbosity: minimal
12-
after_test:
13-
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\stylecopanalyzers\StyleCop.Analyzers\StyleCop.Analyzers.Test\bin\Debug\StyleCop.Analyzers.Test.dll -noshadow -appveyor" -filter:"+[StyleCop*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\StyleCopAnalyzers_coverage.xml
12+
test_script:
13+
- .\packages\OpenCover.4.6.166\tools\OpenCover.Console.exe -register:user -target:"%xunit20%\xunit.console.x86.exe" -targetargs:"C:\projects\stylecopanalyzers\StyleCop.Analyzers\StyleCop.Analyzers.Test\bin\Debug\StyleCop.Analyzers.Test.dll -noshadow -appveyor" -returntargetcode -filter:"+[StyleCop*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -output:.\StyleCopAnalyzers_coverage.xml
1414
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
1515
- pip install codecov
1616
- codecov -f "StyleCopAnalyzers_coverage.xml"

0 commit comments

Comments
 (0)