https://kotlinlang.org logo
e

Emil Kantis

11/11/2021, 8:03 PM
Is
withData
working as intended with regards to test-lifecycles? This test will never print
Hello
, for instance
Copy code
class SomeTest : FunSpec(
   {
      beforeEach { println("Hello") }

      context("some data test") {
         withData("World", "Foo", "Bar") { x ->
            println(x)
         }
      }
   }
)
s

sam

11/11/2021, 8:10 PM
whcih version
e

Emil Kantis

11/11/2021, 8:10 PM
5.0.0.M3
s

sam

11/11/2021, 8:10 PM
beforeEach is only leaf tests and withData is container tests. I will make all this clear in docs.
e

Emil Kantis

11/11/2021, 8:13 PM
Thanks 🙌
9 Views