huehnerlady
08/19/2020, 9:19 AMimport io.kotest.core.spec.IsolationMode
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.shouldBe
internal class Test : FreeSpec() {
override fun isolationMode(): IsolationMode = IsolationMode.InstancePerTest
init {
beforeTest {
print("beforeTest")
}
"fails" - {
true shouldBe false
}
"passes" - {
true shouldBe true
}
}
}
the result looks in intellij like screenshot 1 and in gradle I get the error “2 failed” with the tests visible in screenshot 2. How can I get rid of the init
in intellij and the Test.executionError
in gradle? Is it the Spec I am using or something wrong with kotest?
I am using kotlin 1.3.72 and kotest 4.1.3phil-t
08/20/2020, 12:47 PMhuehnerlady
08/20/2020, 4:04 PMphil-t
08/21/2020, 8:27 AMhuehnerlady
08/21/2020, 8:37 AMsam
08/21/2020, 3:13 PMsam
08/21/2020, 3:13 PMsam
08/21/2020, 3:13 PMsam
08/21/2020, 3:13 PMhuehnerlady
08/25/2020, 5:14 PMphil-t
08/27/2020, 10:17 AMsam
08/27/2020, 11:49 AMhuehnerlady
08/27/2020, 1:33 PMexecutionError
Do you know how to get ridof that?phil-t
08/27/2020, 3:08 PMsam
08/27/2020, 3:24 PMhuehnerlady
08/27/2020, 4:39 PMexecutionError
In screenshot 2 there is the ‘test’ fails
. If you look closely you can see that it fails at exxactly the same point.
All in all I would expect just the test fails
to be there, not in addition the executionError
🤔sam
08/27/2020, 4:39 PMhuehnerlady
08/28/2020, 5:52 AMphil-t
08/28/2020, 10:13 AMhuehnerlady
08/28/2020, 10:19 AM