Ok, I’ve just played a bit with gradle samples in ...
# kotlintest
m
Ok, I’ve just played a bit with gradle samples in kotlintest repo. Took
ExpectSpecExampleTest
and modified it to:
Copy code
class ExpectSpecExampleTest : ExpectSpec() {
    init {
      context("some context") {
        expect("some test") {
            1 shouldBe 2
        }
      }
    }
}
When running
gradle clean test
no tests are actually run. I had to add
test { useJUnitPlatform() }
. Running
gradle clean test
gives me a report of 2 (!) broken tests:
Copy code
io.kotlintest.samples.gradle.ExpectSpecExampleTest > Expect: some test FAILED
    org.opentest4j.AssertionFailedError

io.kotlintest.samples.gradle.ExpectSpecExampleTest > Context: some context FAILED
    org.opentest4j.AssertionFailedError
I feel lost now. Is is an expected behavior that when using `context`/`expect` I have to deal with doubled tests? Using master of kotlintest repo (
04d09f5b
) and Gradle wrapper
4.10.3
which is commited to the repo.