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.Rob Elliot
11/24/2021, 4:39 PMKOTEST_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 PMRob Elliot
11/24/2021, 4:40 PMTest framework quit unexpectedly, but again no further information.sam
11/24/2021, 4:41 PMsam
11/24/2021, 4:41 PMsam
11/24/2021, 4:42 PMRob Elliot
11/24/2021, 4:43 PMsam
11/24/2021, 4:44 PMsam
11/24/2021, 4:44 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 PMsam
11/24/2021, 4:46 PMRob Elliot
11/24/2021, 4:47 PMsam
11/24/2021, 4:47 PMsam
11/24/2021, 4:50 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 PMsam
11/24/2021, 5:59 PMsam
11/24/2021, 5:59 PMRob Elliot
11/24/2021, 6:00 PMRob Elliot
11/24/2021, 6:06 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 PMsam
11/24/2021, 6:07 PMsam
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.Rob Elliot
11/24/2021, 6:11 PMsam
11/24/2021, 6:11 PMsam
11/24/2021, 6:11 PMsam
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 PMsam
11/24/2021, 6:17 PMRob Elliot
11/24/2021, 6:17 PMkotest-*-jvm artifacts - joys of being on Maven not Gradle.sam
11/24/2021, 6:20 PMsam
11/24/2021, 6:20 PMRob Elliot
11/24/2021, 6:20 PM