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