For example:
step("connect to server", function()
-- ...
end)
step("send requests", function()
-- ...
end)
The second test should happen after the first no matter what arguments are given, and the second is skipped when the first is failed/skipped.
I know the same behavior can be achieved by putting them into the same it() block, but:
- It will only be counted as 1 test in the summary;
- it won't benefit from
before_each() etc.