mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
test: add jacoco
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
allprojects {
|
||||
apply(plugin: 'java')
|
||||
apply(plugin: 'jacoco')
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -11,6 +12,13 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
test {
|
||||
finalizedBy jacocoTestReport // report is always generated after tests run
|
||||
}
|
||||
jacocoTestReport {
|
||||
dependsOn test // tests are required to run before generating the report
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation platform('org.junit:junit-bom:5.11.3')
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter'
|
||||
|
||||
Reference in New Issue
Block a user