https://kotlinlang.org logo
#kotest
Title
# kotest
a

Alexandre Brown

02/27/2023, 3:44 PM
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

Sam

02/27/2023, 3:46 PM
Take a look at
FreeSpec
instead of
StringSpec
👍
a

Alexandre Brown

02/27/2023, 3:47 PM
This is exactly what I needed, thanks @Sam! 🎉
e

Emil Kantis

02/27/2023, 4:05 PM
We have an open issue for unifying the different "stringy"-specs 🙂 https://github.com/kotest/kotest/issues/3386
l

LeoColman

02/27/2023, 4:27 PM
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