Skip to content
Snippets Groups Projects
Commit 203a841e authored by Arnaud LABOUREL's avatar Arnaud LABOUREL
Browse files

Added jacoco testreports

parent 6ffc3229
No related branches found
No related tags found
No related merge requests found
plugins {
id("java")
id("jacoco")
}
group = "fr.univ_amu.m1info"
......@@ -16,12 +17,23 @@ dependencies {
testImplementation("org.assertj:assertj-core:3.27.0")
}
tasks.test {
useJUnitPlatform()
}
tasks.test {
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
}
tasks.jacocoTestReport {
dependsOn(tasks.test) // tests are required to run before generating the report
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment