From 6efe600a4250c3ffefe49a66c31693cf8c542ecc Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Wed, 15 Jan 2020 23:57:09 +1100 Subject: [PATCH] Update test.ps1 --- test.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test.ps1 b/test.ps1 index eace16323..307d00469 100644 --- a/test.ps1 +++ b/test.ps1 @@ -11,7 +11,9 @@ param( if ($codecov -eq 'true') { - # xunit doesn't understand the CollectCoverage params + # xunit doesn't understand the CollectCoverage params so use dotnet test + # Coverage tests are run in debug because the coverage tools are triggering a JIT error in filter processors + # that causes the blue component of transformed values to be corrupted. dotnet clean -c Debug dotnet test -c Debug -f $targetFramework /p:codecov=true /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput='../../../coverage.xml' } @@ -25,8 +27,14 @@ else { $fxVersion = "--fx-version ${matches[1]}.0" } + # xunit requires explicit path Set-Location $env:XUNIT_PATH + # xunit doesn't actually understand -x64 as an option + if ($platform -ne '-x86') { + $platform = '' + } + dotnet clean -c Release dotnet xunit -c Release -f $targetFramework ${fxVersion} $platform