If I run a gradle test task from inside IntelliJ i...
# kotlintest
a
If I run a gradle test task from inside IntelliJ it shows up as Ignored however
a
Are you using JUnit 5? You may want to make the test task dépend on clean test so that it runs each time. If no changes are detected, tasks are sometimes skipped
a
Well that message is actually relevant with the other two; the problem isn't that it skips doing tests or anything it marks failed tests as skipped. And yea this is with JUnit 5, just the
useJUnitPlatform
that's on the kotlintest readme. If I just only have the StringSpec example and turn on 'testLogging { events("PASSED", "SKIPPED", "FAILED") }` (it's with gradle kotlin dsl) and then execute
gradlew cleanTest test
it will show both tests as
PASSED
in the console, then if I modify a test so it should fail e.g. do
"hello".length shouldBe 6
instead of
shouldBe 5
then it shows up as
SKIPPED
and build is still
SUCCESSFULL
s
Try 3.1.8