mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Add code coverage report
This commit is contained in:
parent
1d1a3e7f42
commit
e03c6c0dd1
@ -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>
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user