hulu / roca

A command-line tool for running brightscript tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for beforeEach/afterEach

sjbarag opened this issue · comments

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.

commented

Going to edit this down to just beforeEach/afterEach