Hi, I need to know amount of tests in whole suite....
# kotest
t
Hi, I need to know amount of tests in whole suite. But if spec fails while running beforeSpec, all the tests that are nested inside context is lost 🙂 Is there a way to know how many tests was about to be executed?
s
There's no way to know in advance as kotest allows dynamic tests.
You could have a test that does repeat(100) { test("test $it") {} } for example
t
if they're not in context we can see them
s
top level tests are known
nested tests are not
t
yea... i needed it for report generation. thank for replay though