From 962a3c716180a26f49527bbe9ca5322e9ec87b01 Mon Sep 17 00:00:00 2001 From: spsarras Date: Fri, 26 Jul 2024 13:27:13 +0100 Subject: [PATCH] braught back the code coverage check --- build-test-deploy.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build-test-deploy.yml b/build-test-deploy.yml index 5b20b10..9a33c54 100644 --- a/build-test-deploy.yml +++ b/build-test-deploy.yml @@ -34,11 +34,11 @@ steps: env: MSBUILDDISABLENODEREUSE: 1 -#- powershell: | -# dotnet test --collect:"XPlat Code Coverage" /TestAdapterPath:$env:UserProfile\.nuget\packages\coverlet.collector\6.0.0\build --results-directory .\results\adsecgh .\AdSecGHTests\bin\x64\Release\net48\AdSecGHTests.dll -# dotnet test --collect:"XPlat Code Coverage" /TestAdapterPath:$env:UserProfile\.nuget\packages\coverlet.collector\6.0.0\build --results-directory .\results\integration .\IntegrationTests\bin\x64\Release\net48\IntegrationTests.dll -# displayName: dotnet tests -# failOnStderr: true +- powershell: | + dotnet test --collect:"XPlat Code Coverage" /TestAdapterPath:$env:UserProfile\.nuget\packages\coverlet.collector\6.0.0\build --results-directory .\results\adsecgh .\AdSecGHTests\bin\x64\Release\net48\AdSecGHTests.dll + dotnet test --collect:"XPlat Code Coverage" /TestAdapterPath:$env:UserProfile\.nuget\packages\coverlet.collector\6.0.0\build --results-directory .\results\integration .\IntegrationTests\bin\x64\Release\net48\IntegrationTests.dll + displayName: dotnet tests + failOnStderr: true - powershell: | if (200 -ne (Invoke-WebRequest -Uri https://codecov.io/validate -Body (Get-Content -Raw -LiteralPath .\codecov.yml) -Method post | Select-Object StatusCode).StatusCode) {