From 1faa492b14f001b058509ca03ad2dc75e9d25ac5 Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Wed, 16 Nov 2022 19:04:28 +0100 Subject: [PATCH] Use OpenCover format --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 1097bbd8..103fbeeb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -26,13 +26,13 @@ test_script: dotnet sonarscanner begin /k:"mganss_XmlSchemaClassGenerator" /v:$env:APPVEYOR_BUILD_VERSION /o:"mganss-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$env:sonar_token" /d:sonar.cs.opencover.reportsPaths="$($env:APPVEYOR_BUILD_FOLDER)\coverage.net6.0.xml" /d:sonar.coverage.exclusions="**/Program.cs" dotnet build } - - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput="..\coverage.xml" XmlSchemaClassGenerator.Tests\XmlSchemaClassGenerator.Tests.csproj /p:Include="[XmlSchemaClassGenerator]*" -f net6.0 + - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutputFormat=opencover /p:CoverletOutput="..\coverage.xml" XmlSchemaClassGenerator.Tests\XmlSchemaClassGenerator.Tests.csproj /p:Include="[XmlSchemaClassGenerator]*" -f net6.0 - ps: | if (-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet sonarscanner end /d:sonar.login="$env:sonar_token" } - pip install codecov - - codecov -f "coverage.xml" + - codecov -f "coverage.net6.0.xml" artifacts: - path: 'XmlSchemaClassGenerator\**\*.*nupkg' - path: 'XmlSchemaClassGenerator.Console\**\*.*nupkg'