From e03c6c0dd1b389643c4df88be4a76d0b967eebb0 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sun, 15 Jul 2018 14:05:31 -0500 Subject: [PATCH] Add code coverage report --- .../UnityEngine.Networking.Tests/packages.config | 1 + appveyor.yml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/Unity-Technologies-networking/UnityEngine.Networking.Tests/packages.config b/Unity-Technologies-networking/UnityEngine.Networking.Tests/packages.config index 36927ff05..c5ff1ecef 100644 --- a/Unity-Technologies-networking/UnityEngine.Networking.Tests/packages.config +++ b/Unity-Technologies-networking/UnityEngine.Networking.Tests/packages.config @@ -1,4 +1,5 @@  + \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index bd476c94e..92b84b159 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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"