From 64b390fcbf161fc2ab65779b78502e8801c2d8b8 Mon Sep 17 00:00:00 2001 From: deletescape Date: Tue, 22 Nov 2016 11:18:05 +0100 Subject: [PATCH] add jacoco coverage plugin --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 7316fc0..9971261 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ apply plugin: 'java' +apply plugin:"jacoco" repositories { jcenter() } @@ -21,3 +22,10 @@ artifacts { dependencies { testCompile 'junit:junit:4.12' } +jacocoTestReport { + reports { + xml.enabled = true + html.enabled = true + } +} +check.dependsOn jacocoTestReport