Rob Elliot
11/24/2021, 4:39 PMkotest-extensions-spring:1.0.1
to my maven project (using surefire to run kotest-framework-api-jvm:4.6.3
) and with no code changes it stopped finding any of my existing specs. No errors logged, it just silently stops working.KOTEST_DEBUG=true
as an env var the end of the maven run looks like this:
Discovery: Loading specified classes...
Discovery: Loading of selected classes completed in 0ms
After filters there are 3 spec classes
JUnit ExecutionRequest[org.junit.platform.engine.ExecutionRequest] [configurationParameters=LauncherConfigurationParameters [lookups = [systemProperties [...], propertiesFile []]]; rootTestDescriptor=KotestEngineDescriptor: [engine:kotest]]
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.442 s
[INFO] Finished at: 2021-11-24T16:32:34Z
[INFO] ------------------------------------------------------------------------
sam
11/24/2021, 4:40 PMRob Elliot
11/24/2021, 4:40 PMTest framework quit unexpectedly
, but again no further information.sam
11/24/2021, 4:41 PMRob Elliot
11/24/2021, 4:43 PMsam
11/24/2021, 4:44 PMRob Elliot
11/24/2021, 4:45 PMsam
11/24/2021, 4:45 PMRob Elliot
11/24/2021, 4:45 PMSpringAutowireConstructorExtension
and see if I can work out where the issue us.sam
11/24/2021, 4:45 PMRob Elliot
11/24/2021, 4:47 PMsam
11/24/2021, 4:47 PMRob Elliot
11/24/2021, 5:59 PMKoTestEngine.execute
does Try { submitAll(plan) }
, but fun submitAll(plan: TestPlan) = Try { ... }
, so you get a nested Try<Try<>>
where the top one is a Success
but the nested one is a Failure
, so the error reporting fold
doesn’t get triggered.sam
11/24/2021, 5:59 PMRob Elliot
11/24/2021, 6:00 PMjava.lang.NoSuchMethodError: 'void io.kotest.mpp.LoggerKt.log(java.lang.String)'
But I can see that method! It’s on the classpath! And anyway, why would kotest-extensions-spring
being on the classpath make it happen?!sam
11/24/2021, 6:07 PMRob Elliot
11/24/2021, 6:11 PMkotest-extensions-spring
depends on io.kotest:kotest-framework-engine-jvm:4.4.3
.sam
11/24/2021, 6:11 PMRob Elliot
11/24/2021, 6:12 PMsam
11/24/2021, 6:12 PMRob Elliot
11/24/2021, 6:13 PMsam
11/24/2021, 6:13 PMRob Elliot
11/24/2021, 6:17 PMkotest-*-jvm
artifacts - joys of being on Maven not Gradle.sam
11/24/2021, 6:20 PMRob Elliot
11/24/2021, 6:20 PM