Add support for beforeEach/afterEach
sjbarag opened this issue · comments
Sean Barag commented
We should include some way to execute code in several setup/teardown phases:
beforeEach
(like in jasmine): before every test in a suite (and its subsuites)afterEach
(like in jasmine): after every test in a suite (and its subsuites)
Note that this'll probably require making sure there's a place to put shared state between tests since BrightScript doesn't support closures like JavaScript does.
Levi commented
Going to edit this down to just beforeEach
/afterEach