It used to be possible to have subclasses of the v...
# kotest
x
It used to be possible to have subclasses of the various Spec classes, and IntelliJ would "see" the individual tests. It looks like that's no longer the case, though. We have a subclass of FunSpec that we often use (mostly sets defaults our team expects, and adds some helper methods), and using it, IntelliJ doesn't show a run button (green triangle) next to tests, but if I change it to use FunSpec directly they appear. I think back when this worked was before the kotest plugin (somehow it was just using IntelliJ's JUnit support, I guess?). Is using a custom subclass of Spec just not supported, or is this a bug, or am I doing something wrong?
s
It should work as it will try to resolve your parent class to work out if it's a spec or not
It might be the case that the PSI element lookup in the plugin can't figure out your class is a kotest spec
x
Turns out that even if I get these run buttons to show up, the tests won't run. I get:
Copy code
Exception in thread "main" java.lang.NoSuchMethodError: com.github.ajalt.clikt.core.CliktCommand.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZLjava/util/Map;Ljava/lang/String;ZZILkotlin/jvm/internal/DefaultConstructorMarker;)V
	at io.kotest.engine.launcher.Execute.<init>(main.kt:26)
	at io.kotest.engine.launcher.MainKt.main(main.kt:24)
s
sounds like a version mismatch to me
what kotest deps do you have lurking about
x
Hmmm... it does look like we're pulling in a different version of io.kotest:kotest-runner-console-jvm than the rest of kotest.
s
dump the console
no longer needed > 4.2.0
x
Will we still be able to run tests from command line without it?
l
Yes
s
console has just been merged into the engine dep
x
That seems to have fixed it! Thanks.