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
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