Skip to content

Commit 8ca865b

Browse files
committed
coverage test
1 parent 10b375f commit 8ca865b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.azure-pipelines/templates/build/build-and-coverage.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,11 @@ steps:
66
publishJUnitResults: true
77
testResultsFiles: '**/TEST-*.xml'
88
javaHomeOption: 'JDKVersion'
9-
sonarQubeRunAnalysis: false
9+
sonarQubeRunAnalysis: false
10+
11+
- task: PublishCodeCoverageResults@1
12+
inputs:
13+
codeCoverageTool: 'JaCoCo'
14+
summaryFileLocation: $(System.DefaultWorkingDirectory)/build/reports/jacoco/test/jacocoTestReport.xml
15+
pathToSources: $(System.DefaultWorkingDirectory)/src/main/java
16+
failIfCoverageEmpty: true

0 commit comments

Comments
 (0)