Changes between Version 6 and Version 7 of unitpy
- Timestamp:
- 09/30/24 15:39:26 (5 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
unitpy
v6 v7 11 11 * The method annotated with {{{@Before}}} is run before every test. 12 12 * The method annotated with {{{@After}}} is run after every test. 13 * Every test class must be annotated with @RunWith13 * Every test class must be annotated with {{{@RunWith}}} 14 14 15 15 … … 17 17 This enables to use the test class also as normal class. 18 18 19 The @RunWithannotation is to be placed right before the class definition.20 @RunWith allows the class to be run in different "styles", depending on the argument provided to @RunWith.19 The {{{@RunWith}}} annotation is to be placed right before the class definition. 20 {{{@RunWith}}} allows the class to be run in different "styles", depending on the argument provided to {{{@RunWith}}}. 21 21 22 22 ||= annotation =|| … … 26 26 == JUnit4ClassRunner 27 27 This runs all methods annotated with @Test inside the class. 28 If there is a method annotated @Before, this is called first.28 If there is a method annotated {{{@Before}}}, this is called first. 29 29 Then the test method is called (with no arguments) 30 Finally, if there is a method annotated @After, that method is called30 Finally, if there is a method annotated {{{@After}}}, that method is called 31 31 32 32