Upgrade code coverage tasks
This commit is contained in:
Родитель
4de01d6ed7
Коммит
2ac54f751e
|
@ -261,14 +261,14 @@ jobs:
|
|||
displayName: Generate Code Coverage Data
|
||||
condition: and(succeededOrFailed(), eq(variables['CODE_COVERAGE'], 'enabled'))
|
||||
|
||||
- task: PublishCodeCoverageResults@1
|
||||
- task: PublishCodeCoverageResults@2
|
||||
inputs:
|
||||
codeCoverageTool: Cobertura
|
||||
summaryFileLocation: '$(Build.SourcesDirectory)/**/Cobertura.xml'
|
||||
displayName: Publish Code Coverage to DevOps
|
||||
condition: and(succeededOrFailed(), eq(variables['CODE_COVERAGE'], 'enabled'))
|
||||
|
||||
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@8
|
||||
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@9
|
||||
displayName: Check line coverage
|
||||
inputs:
|
||||
checkCoverage: true
|
||||
|
@ -278,7 +278,7 @@ jobs:
|
|||
coverageThreshold: ${{ parameters.LineCoverageTarget }}
|
||||
condition: and(succeededOrFailed(), eq(variables['CODE_COVERAGE'], 'enabled'), eq(variables['Skip.LineCoverageEnforcement'], ''))
|
||||
|
||||
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@8
|
||||
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@9
|
||||
displayName: Check branch coverage
|
||||
inputs:
|
||||
checkCoverage: true
|
||||
|
|
|
@ -237,7 +237,7 @@ jobs:
|
|||
displayName: Generate Code Coverage Data
|
||||
condition: and(succeeded(), ne(variables['CODE_COVERAGE'], 'disabled'), ne(variables['CODE_COVERAGE'], ''))
|
||||
|
||||
- task: PublishCodeCoverageResults@1
|
||||
- task: PublishCodeCoverageResults@2
|
||||
inputs:
|
||||
codeCoverageTool: Cobertura
|
||||
summaryFileLocation: '$(Build.SourcesDirectory)/**/Cobertura.xml'
|
||||
|
|
Загрузка…
Ссылка в новой задаче