Hi,
I have published the code coverage report on devops but its not showing on sonar cloud.
I have created a locl folder- covergae- coverage-cobertura.xml but covergae report is not pushed here. it created as artificat
Azure DevOps Services | Sign In.
I have also updated karma conf file in angular to point to my repo sub dir.
yml coverage publish:
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(Build.SourcesDirectory)/coverage/cobertura-coverage.xml'
pathToSources: '$(Build.SourcesDirectory)/coverage/'
reportDirectory: '$(Build.SourcesDirectory)/coverage/'
additionalCodeCoverageFiles: 'https://dev.azure.com/CASoftwareDevelopment/_apis/resources/Containers/27939973/Code%20Coverage%20Report_1550?itemPath=Code%20Coverage%20Report_1550%2Fsummary1550%2Fcobertura-coverage.xml'
cliSources: '.'
extraProperties: |
sonar.coverage.cobertura.xmlReportPaths = '$(Build.SourcesDirectory)/**/*.zip'
sonar.exclusions=**/Migrations/*,**/*.Tests/**/*,**/*.TestDoubles/**/*,**/*.TestHarness/**/*,test/**/*,wwwroot/**/*,custom_typings/**/*,CA_MCare21_Application,src/assets/img/**/*,**/*.png,**/*.css,**/*.html,**/*.scss,**/*.js,**/*.jpg,node_modules/**/*,src/node_modules/**/*
arguments: '--collect "Code Coverage"'
____________________________