Skip to content

Commit 074d8b5

Browse files
author
Jegors Čemisovs
committed
Add jacoco plugin
1 parent 09ec7df commit 074d8b5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

algorithm/build.gradle

+12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'groovy'
33
id 'java-library'
44
id 'maven-publish'
5+
id 'jacoco'
56
id 'org.sonarqube' version '3.3'
67
}
78

@@ -68,4 +69,15 @@ dependencies {
6869

6970
test {
7071
useJUnitPlatform()
72+
finalizedBy jacocoTestReport
73+
}
74+
75+
jacocoTestReport {
76+
dependsOn test
77+
78+
reports {
79+
xml.required = true
80+
csv.required = false
81+
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
82+
}
7183
}

0 commit comments

Comments
 (0)