Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added Jacoco based code cov for Maven and Gradle
  • Loading branch information
rishavs committed Nov 26, 2018
commit 02c0f389cba14a8348c161a0b97f32e3ee3dcd2e
7 changes: 3 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ steps:
testResultsFiles: '**/TEST-*.xml'
goals: 'package'

# Publish Code Coverage Results
# Publish Cobertura or JaCoCo code coverage results from a build
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'JaCoCo' # Options: cobertura, jaCoCo
codeCoverageTool: 'JaCoCo'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/site/jacoco/jacoco.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/site/jacoco' # Optional
failIfCoverageEmpty: true # Optional
reportDirectory: '$(System.DefaultWorkingDirectory)/**/site/jacoco'
failIfCoverageEmpty: true

- task: CopyFiles@2
inputs:
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
</goals>
<configuration>
<!-- Sets the path to the file which contains the execution data. -->

<dataFile>target/jacoco.exec</dataFile>
<!-- Sets the output directory for the code coverage report. -->
<outputDirectory>target/jacoco-ut</outputDirectory>
Expand Down