Ran into another issue w/ Kotest 6.0.0.M2 w/ gradl...
# kotest-contributors
e
Ran into another issue w/ Kotest 6.0.0.M2 w/ gradle plugin in a project that uses kotest-extensions-wiremock. 🧵
When I run the project's tests I get:
Copy code
> Task :medhelp:hr-sync:kotest FAILED
Starting Kotest launcher with args: --listener;teamcity;--termcolor;ansi16;--candidates;dev.databoss.medhelp.hr.sync.EmploymentDiffTest;dev.databoss.medhelp.hr.sync.EmploymentLevelDiffTest;dev.databoss.medhelp.hr.sync.sympa.DeserializeEmployeeTest;dev.databoss.medhelp.hr.sync.IsValidSsnTest;dev.databoss.medhelp.hr.sync.NewEmployeeTest
java.lang.NoSuchMethodError: 'void io.kotest.core.project.ProjectContext.<init>(io.kotest.core.project.TestSuite, io.kotest.engine.tags.TagExpression, io.kotest.core.config.AbstractProjectConfig)'
	at io.kotest.engine.interceptors.EngineInterceptorKt.toProjectContext(EngineInterceptor.kt:218)
	at io.kotest.engine.interceptors.ProjectExtensionEngineInterceptor.intercept(ProjectExtensionEngineInterceptor.kt:31)
	at io.kotest.engine.TestEngine$execute$execute$1$1.invoke(TestEngine.kt:57)
	at io.kotest.engine.interceptors.SpecSortEngineInterceptor.intercept(SpecSortEngineInterceptor.kt:32)
	at io.kotest.engine.TestEngine$execute$execute$1$1.invoke(TestEngine.kt:57)
	at io.kotest.engine.interceptors.TestDslStateInterceptor.intercept(TestDslStateInterceptor.kt:14)
	at io.kotest.engine.TestEngine$execute$execute$1$1.invoke(TestEngine.kt:57)
	at io.kotest.engine.interceptors.TestEngineStartedFinishedInterceptor.intercept(TestEngineStartedFinishedInterceptor.kt:22)
	at io.kotest.engine.TestEngine$execute$execute$1$1.invoke(TestEngine.kt:57)
	at io.kotest.engine.interceptors.SystemPropertiesEngineInterceptor.intercept(SystemPropertiesEngineInterceptor.kt:16)
	at io.kotest.engine.TestEngine$execute$execute$1$1.invoke(TestEngine.kt:57)
	at io.kotest.engine.TestEngine.execute$kotest_framework_engine(TestEngine.kt:63)
	at io.kotest.engine.TestEngineLauncher.async(TestEngineLauncher.kt:198)
	at io.kotest.engine.launcher.MainKt$main$1.invokeSuspend(main.kt:96)
	at io.kotest.engine.launcher.MainKt$main$1.invoke(main.kt)
	at io.kotest.engine.launcher.MainKt$main$1.invoke(main.kt)
	at io.kotest.engine.RunBlockingKt$runBlocking$1.invokeSuspend(runBlocking.kt:3)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
Checked the dependencies and
kotest-extensions-wiremock
brings
kotest-framework-api
5.5.4 onto the classpath. Adding an explicit dependency on
kotest-framework-engine:6.0.0.M2
seems to override the transitive dependency and resolve the issue
s
Wiremock wasn't able to get into m2 main repo as the pr for jdk11 is broken