mworzala / canary

4 stars 1 forks source link

WIP: before each/after each functions for tests #9

Closed AlexKinley closed 3 years ago

AlexKinley commented 3 years ago

JUnit has the @BeforeEach and @AfterEach annotations to designate a function to be run before or after each test in that class. This is something that we want to bring to Canary. It is not hard to imagine having a group of tests that all have similar setup for every test case. After each is probably less useful, but it's addition doesn't detract from anything, and could potentially be used to clean up a test before unwanted effects happen.