File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ plugins {
66 id ' java'
77 id " io.freefair.lombok" version " 6.5.1"
88 id ' maven-publish'
9+ id ' jacoco'
910}
1011
1112group ' io.securecodebox'
@@ -21,8 +22,7 @@ dependencies {
2122 testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine'
2223 testImplementation ' org.springframework:spring-test:5.3.23'
2324 testImplementation ' org.hamcrest:java-hamcrest:2.0.0.0'
24-
25-
25+ testImplementation ' org.mockito:mockito-core:3.+'
2626
2727 implementation group : ' org.springframework' , name : ' spring-web' , version : ' 5.3.9'
2828 implementation group : ' org.apache.httpcomponents' , name : ' httpclient' , version : ' 4.5.13'
@@ -90,4 +90,10 @@ publishing {
9090
9191test {
9292 useJUnitPlatform()
93+ finalizedBy jacocoTestReport
94+ }
95+
96+ // https://docs.gradle.org/current/userguide/jacoco_plugin.html
97+ jacocoTestReport {
98+ dependsOn test // tests are required to run before generating the report
9399}
You can’t perform that action at this time.
0 commit comments