From e3af1b682d662762c821ae99876a278a78c653d6 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 26 Sep 2025 02:30:05 +0300 Subject: [PATCH] Fix code coverage on CI Signed-off-by: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> --- azure-pipelines.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aadf47452..b4fb4c455 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1220,7 +1220,7 @@ stages: extraProperties: | sonar.exclusions=**/obj/**,**/*.dll,**/NzbDrone.Core.Test/Files/**/*,./frontend/**,**/ExternalModules/**,./src/Libraries/** sonar.coverage.exclusions=**/Lidarr.Api.V1/**/* - sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/CoverageResults/**/coverage.opencover.xml + sonar.cs.cobertura.reportsPaths=$(Build.SourcesDirectory)/CoverageResults/**/coverage.cobertura.xml sonar.cs.nunit.reportsPaths=$(Build.SourcesDirectory)/TestResult.xml - bash: | ./build.sh --backend -f net6.0 -r win-x64 @@ -1232,10 +1232,11 @@ stages: - task: reportgenerator@5.3.11 displayName: Generate Coverage Report inputs: - reports: '$(Build.SourcesDirectory)/CoverageResults/**/coverage.opencover.xml' + reports: '$(Build.SourcesDirectory)/CoverageResults/**/coverage.cobertura.xml' targetdir: '$(Build.SourcesDirectory)/CoverageResults/combined' reporttypes: 'HtmlInline_AzurePipelines;Cobertura;Badges' publishCodeCoverageResults: true + sourcedirs: src - stage: Report_Out dependsOn: