You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently suites can be nested and they work, e.g.:
test.suite("A collection of test cases", function()
test.case("case 1", function()
check.is_true(false)
end)
test.suite("A nested suite", function()
test.case("Case in a nested suite", function()
check.is_true(false)
end)
end)
end)
This actually works fine, but there is no indication of the nesting in the output:
Would need to figure out 2 things:
How to nicely report this, e.g. indent 1 level further? Combine suite names? etc..
Interaction with focus/skip
I think the most sensible way is for nested suites to inherit parent's focus/skip state?
Focus in a nested suite should certainly not run parent suite's tests
The text was updated successfully, but these errors were encountered:
The use-case here is probably for data-driven testing where a collection of tests are run on each element, one could wrap the nested suite in a for loop or something? I haven't had a need for this yet, so I wont work on this for now, but open to revisiting!
Currently suites can be nested and they work, e.g.:
This actually works fine, but there is no indication of the nesting in the output:
Would need to figure out 2 things:
I think the most sensible way is for nested suites to inherit parent's focus/skip state?
Focus in a nested suite should certainly not run parent suite's tests
The text was updated successfully, but these errors were encountered: