The output of <nested data tests> does not seem to...
# kotest
x
The output of nested data tests does not seem to match the documentation...
Is this a configuration problem on my end, a bug in the docs, or something else?
FWIW, I'd prefer the more nested view shown in the docs, if that's possible.
In case it matters, the example code in question (with a failing "shouldBe" added):
Copy code
context("each service should support all http methods") {
    val services = listOf(
        "<http://internal.foo>",
        "<http://internal.bar>",
        "<http://public.baz>",
    )

    val methods = listOf("GET", "POST", "PUT")
    withData(services) {
        withData(methods) {
            0 shouldBe 1
        }
    }
}
s
It doesn't look like it's nesting properly for you.
e
withData generates leaf tests. You shouldn't be able to nest them
x
There's a page in the docs dedicated to nesting them: https://kotest.io/docs/framework/datatesting/nested-tests.html
The code snippet above is taken from that page, except I replaced
// test service against method
with
0 shouldBe 1