Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit eb38e6e

Browse files
Adding support for code coverage
1 parent c4474f0 commit eb38e6e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

appveyor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ version: '2.5.6.{build}'
33
skip_tags: true
44
install:
55
- ps: |
6+
choco install opencover.portable
7+
choco install codecov
68
$full_build = Test-Path env:GHFVS_KEY
79
git submodule init
810
git submodule sync
@@ -24,6 +26,10 @@ test:
2426
categories:
2527
except:
2628
- Timings
29+
after_test:
30+
- ps: |
31+
OpenCover.Console.exe -register:user -target:"nunit3-console.exe" -targetargs:"\"visualstudio\test\GitHub.Api.UnitTests\bin\Release\GitHub.Api.UnitTests.dll\" \"visualstudio\test\GitHub.App.UnitTests\bin\Release\GitHub.App.UnitTests.dll\" \"visualstudio\test\GitHub.Exports.Reactive.UnitTests\bin\Release\GitHub.Exports.Reactive.UnitTests.dll\" \"visualstudio\test\GitHub.Exports.UnitTests\bin\Release\GitHub.Exports.UnitTests.dll\" \"visualstudio\test\GitHub.Extensions.UnitTests\bin\Release\GitHub.Extensions.UnitTests.dll\" \"visualstudio\test\GitHub.InlineReviews.UnitTests\bin\Release\GitHub.InlineReviews.UnitTests.dll\" \"visualstudio\test\GitHub.Primitives.UnitTests\bin\Release\GitHub.Primitives.UnitTests.dll\" \"visualstudio\test\GitHub.TeamFoundation.UnitTests\bin\Release\GitHub.TeamFoundation.UnitTests.dll\" \"visualstudio\test\GitHub.UI.UnitTests\bin\Release\GitHub.UI.UnitTests.dll\" \"visualstudio\test\GitHub.VisualStudio.UnitTests\bin\Release\GitHub.VisualStudio.UnitTests.dll\" \"visualstudio\test\MetricsTests\MetricsTests\bin\Release\MetricsTests.dll\" \"visualstudio\test\TrackingCollectionTests\bin\Release\TrackingCollectionTests.dll\" --where \"cat != Timings\"" -output:".\coverage.xml"
32+
codecov -f "coverage.xml"
2733
on_success:
2834
- ps: |
2935
if ($full_build) {

0 commit comments

Comments
 (0)