Mikhail Galanin
01/19/2021, 10:40 AMStringSpecScope
doesn’t implement ContainerScope
? It appeared that I can’t use io.kotest.core.datatest.forAll
inside StringSpec
(or I haven’t found a way…)sam
01/19/2021, 12:25 PMMikhail Galanin
01/19/2021, 1:22 PMsam
01/19/2021, 1:57 PMMikhail Galanin
01/19/2021, 2:04 PMimport io.kotest.core.datatest.forAll
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
class T002GeneratorTest : StringSpec({
"Generate list of integer" {
forAll(1, 2, 3) { value ->
value shouldBe value + 0
}
}
})
sam
01/19/2021, 2:04 PMMikhail Galanin
01/19/2021, 2:23 PMsam
02/01/2021, 6:19 PMMikhail Galanin
02/01/2021, 7:19 PMso the issue is that you cannot nest tests with string specthat was actually the question: why I cannot?
in RC3 it’s supposed to at least error when you do thisI’m probably doing something wrong but I don’t see the error 😞