Add code coverage report

This commit is contained in:
Paul Pacheco 2018-07-15 14:05:31 -05:00
parent 1d1a3e7f42
commit e03c6c0dd1
2 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="3.10.1" targetFramework="net47" />
<package id="OpenCover" version="4.6.519" targetFramework="net47" />
</packages>

View File

@ -12,3 +12,11 @@ artifacts:
image: Visual Studio 2017
test_script:
- Unity-Technologies-networking\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -returntargetcode -register:user -target:"nunit3-console.exe" -targetargs:"Unity-Technologies-networking\UnityEngine.Networking.Tests\bin\Debug\UnityEngine.Networking.Tests.dll" -output:"coverage.xml" -filter:"+[UnityEngine.Networking*]* -[UnityEngine.Networking.Tests*]* "
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage.xml"