mgrzechocinski
03/30/2019, 8:04 PMExpectSpecExampleTest
and modified it to:
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:
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.