Thread
#kotlintest
    Alowaniak

    Alowaniak

    4 years ago
    If I run a gradle test task from inside IntelliJ it shows up as Ignored however
    Allan Wang

    Allan Wang

    4 years ago
    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
    Alowaniak

    Alowaniak

    4 years ago
    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
    sam

    sam

    4 years ago
    Try 3.1.8