While running a test from the Spec level which mea...
# kotest
o
While running a test from the Spec level which means CityTests, kotest runner picks up
kotest.framework.config.fqn
but, not from the individual test level. It never runs the given
fqn
. Why there is such behaviour difference? Version: 6.0.0.M1 kotest intellij plugin: 1.3.86-243-EAP-SNAPSHOT
Gradle settings of IDE. When I change
Run Tests using
to Intellij. Spec level
fqn
pick-up does not work. So gradle seems to be correct choice.
e
Running individual tests always runs them with the Kotest runner atm
So depending on how you set the
kotest.framework.config.fqn
it might not be picked up by the kotest runner
If you add it as a
kotest.properties
as described here it should work no matter which runner: https://kotest.io/docs/intellij/intellij-properties.html#specifying-the-properties-filename
o
I have it in build.gradle.kts
Copy code
task<Test>("e2eTest") {
  systemProperty("kotest.framework.config.fqn", "myapplication.config")
}
e
Right. That will not work when the test is run by the Kotest runner
o
I see, the process is managed by gradle here I believe so env-var is not visible to kotest runner. I will give it a try to other approach, thanks!
yes it worked! Thanks a lot!
👍 1
e
Glad to hear 🙂