@@ -8,9 +8,6 @@ if ($FALSE -and $env:PLATFORM -eq "x86"){
88 $CS_RUNNER = $CS_RUNNER + " -x86"
99}
1010
11- # Executable paths for OpenCover
12- # Note if OpenCover fails, it won't affect the exit codes.
13- $OPENCOVER = Resolve-Path .\packages\OpenCover.* \tools\OpenCover.Console.exe
1411if ($env: BUILD_OPTS -eq " --xplat" ){
1512 $CS_RUNNER = Resolve-Path $env: USERPROFILE \.nuget\packages\nunit.consolerunner\* \tools\" $CS_RUNNER " .exe
1613}
@@ -23,22 +20,17 @@ $PY = Get-Command python
2320$CS_TESTS = " .\src\embed_tests\bin\Python.EmbeddingTest.dll"
2421$RUNTIME_DIR = " .\src\runtime\bin\"
2522
26- # Run python tests with C# coverage
23+ # Run python tests
2724Write-Host (" Starting Python tests" ) - ForegroundColor " Green"
28- .$OPENCOVER - register:user - searchdirs:" $RUNTIME_DIR " - output:py.coverage `
29- - target:" $PY " - targetargs:" -m pytest" `
30- - returntargetcode
25+ .$PY - m pytest
3126$PYTHON_STATUS = $LastExitCode
3227if ($PYTHON_STATUS -ne 0 ) {
3328 Write-Host " Python tests failed, continuing to embedded tests" - ForegroundColor " Red"
3429}
3530
36- # Run Embedded tests with C# coverage
31+ # Run Embedded tests
3732Write-Host (" Starting embedded tests" ) - ForegroundColor " Green"
38- .$OPENCOVER - register:user - searchdirs:" $RUNTIME_DIR " - output:cs.coverage `
39- - target:" $CS_RUNNER " - targetargs:" $CS_TESTS " `
40- - filter:" +[*]Python.Runtime*" `
41- - returntargetcode
33+ .$CS_RUNNER $CS_TESTS
4234$CS_STATUS = $LastExitCode
4335if ($CS_STATUS -ne 0 ) {
4436 Write-Host " Embedded tests failed" - ForegroundColor " Red"
@@ -52,7 +44,7 @@ if ($env:BUILD_OPTS -eq "--xplat"){
5244 $DOTNET_CMD = " c:\Program Files (x86)\dotnet\dotnet"
5345 }
5446
55- # Run Embedded tests for netcoreapp2.0 (OpenCover currently does not supports dotnet core)
47+ # Run Embedded tests for netcoreapp2.0
5648 Write-Host (" Starting embedded tests for netcoreapp2.0" ) - ForegroundColor " Green"
5749 & $DOTNET_CMD .\src\embed_tests\bin\netcoreapp2.0_publish\Python.EmbeddingTest.dll
5850 $CS_STATUS = $LastExitCode
0 commit comments