From edf231b971f085556e3be98cc007ca8b98871055 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 10 Jun 2020 19:20:35 +0100 Subject: [PATCH] Update README.md Include version in plugin, and requirement for xml reports to be generated by jacoco --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b367385..56dbb68 100644 --- a/README.md +++ b/README.md @@ -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