From 078948c71ed62456a40ced04b2592ad877cdb279 Mon Sep 17 00:00:00 2001 From: Oryan Date: Wed, 4 Nov 2026 13:57:47 -0500 Subject: [PATCH 1/4] Run every test class whatever its name and fail when none run A class named FooTests or FooSpec never ran, and an include that matched nothing passed with zero tests. --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ffb7394a..0da1423b 100644 --- a/pom.xml +++ b/pom.xml @@ -243,8 +243,9 @@ + true - **/*Test.* + **/* From a20589184186a657d7dddd9dd89a0f58467b5916 Mon Sep 17 00:00:00 2001 From: Oryan Date: Wed, 4 Nov 2026 13:57:52 -0500 Subject: [PATCH 2/4] Check Kotlin asserts in the tests even when the runner leaves out -ea Without -ea a Kotlin assert() does nothing, so a broken assertEquals from TestUtils or a bare assert passed. The flag is on the test compile only, so the published jar is unchanged. --- pom.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pom.xml b/pom.xml index 0da1423b..e42f4f85 100644 --- a/pom.xml +++ b/pom.xml @@ -218,6 +218,16 @@ -Werror + + + default-test-compile + + + -Xassertions=always-enable + + + + From 879615507157fc905da3596fce70925923cf0888 Mon Sep 17 00:00:00 2001 From: Oryan Date: Wed, 4 Nov 2026 13:57:57 -0500 Subject: [PATCH 3/4] Drop the surefire-junit4 provider pin Surefire 3.6 runs JUnit 4 tests on the JUnit Platform and no longer publishes surefire-junit4, so the pin kept a 3.5.6 provider inside a 3.6.1 plugin. TestNG from reactive-streams-tck no longer hides the JUnit 4 tests: all 440 run without the pin, and failIfNoTests fails the build if a provider ever runs none. --- pom.xml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pom.xml b/pom.xml index e42f4f85..feda6ee1 100644 --- a/pom.xml +++ b/pom.xml @@ -244,14 +244,6 @@ org.apache.maven.plugins maven-surefire-plugin 3.6.1 - - - - org.apache.maven.surefire - surefire-junit4 - 3.5.6 - - true From f9492f1ff75f7ed3e69dfd8aafec8facdaec9217 Mon Sep 17 00:00:00 2001 From: Oryan Date: Wed, 4 Nov 2026 14:12:14 -0500 Subject: [PATCH 4/4] Let -DfailIfNoTests=false override the no-tests check Surefire only reads the failIfNoTests user property when the plugin config leaves the parameter unset, so the literal value ignored the flag its own error message suggests. Co-Authored-By: Claude --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index feda6ee1..6cb99b38 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ 26.1 1.0.4 + true false github @@ -245,7 +246,6 @@ maven-surefire-plugin 3.6.1 - true **/*