Browse Source

Update test.ps1

af/merge-core
James Jackson-South 6 years ago
parent
commit
6efe600a42
  1. 10
      test.ps1

10
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

Loading…
Cancel
Save