Hello, is there a way to group multiple tests that...
# kotest
a
Hello, is there a way to group multiple tests that follow the
StringSpec
a bit like we an use InnerClass with JUnit5? What I have :
Copy code
"myMethod does ABC when 123" { 

}

"myMethod does XYZ when 666" {

}
What I want :
Copy code
"myMethod" { 
    "does ABC when 123" {

    }
    "does XYZ when 666" {

    }
}
s
Take a look at
FreeSpec
instead of
StringSpec
👍
a
This is exactly what I needed, thanks @Sam! 🎉
e
We have an open issue for unifying the different "stringy"-specs 🙂 https://github.com/kotest/kotest/issues/3386
l
If I remember correctly, the only blocker for that kind of movement was a specific problem with Gradle, which don't let us use the TEST_AND_CONTAINER feature