Skip to content

Commit c9e5827

Browse files
committed
chore: make sure tests run again
1 parent ffaa249 commit c9e5827

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle

+12
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@ subprojects {
8282

8383
compileJava.mustRunAfter verifyGoogleJavaFormat
8484

85+
test {
86+
useJUnitPlatform()
87+
88+
afterSuite { desc, result ->
89+
if (!desc.parent) {
90+
if (result.testCount == 0) {
91+
throw new IllegalStateException("No tests were found. Failing the build")
92+
}
93+
}
94+
}
95+
}
96+
8597
jacocoTestReport {
8698
reports {
8799
xml.enabled = true

0 commit comments

Comments
 (0)