Hello magicians Most likely my question is naive B...
# kotest
i
Hello magicians Most likely my question is naive But anyway, kotlin behaviorspec, is it a way to avoid pyramid of death?
Copy code
Given("A") {
    And("B") {
        And("C") {
            And("D") {
                When("E"){
                    And("F"){
                        And("G"){

                         }
                    }
                }
           }
        }
    }
}
l
You can reduce indentation so it doesn't look so ugly
You can also try to avoid chaining
And
And always, you can switch to another spec 😛
s
You can put And's on the same level but it won't nest them in output. Probably don't need too many levels of indentation for a readable test.
2
🐕 1
i
Thank you for suggestions 🫂 I was sure kotest has more possible ways to deal with such situations