Skip to content
Open
Changes from all commits
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
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,20 @@ your code coverage on code change.
plugins {
id 'java'
id 'jacoco'
id 'com.github.dawnwords.jacoco.badge'
id 'com.github.dawnwords.jacoco.badge' version '0.2.0'
}
```
2. Add xml reports to jacoco task in `build.gradle`, for example:

2. Put the badge link placeholder in your `README.md`
```groovy
jacocoTestReport {
reports {
xml.enabled true
}
}
```

3. Put the badge link placeholder in your `README.md`

```markdown
# Your Project Name
Expand Down