Changes between Version 5 and Version 6 of unitpy
- Timestamp:
- 09/30/24 15:38:29 (8 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
unitpy
v5 v6 5 5 6 6 UnitPy has a number of improvements over the standard method using Testcase: 7 * the test class does not need to extend unittest.TestCase7 * the test class must not extend {{{unittest.TestCase}}} 8 8 * the test class constructor does not need modifications (TestCase requires the name of the test function to be passed as additional argument). 9 9 * The test methods are not required to contain "test" 10 * Every method annotated with {{{@Test}}} is a test 11 * The method annotated with {{{@Before}}} is run before every test. 12 * The method annotated with {{{@After}}} is run after every test. 13 * Every test class must be annotated with @RunWith 14 15 16 10 17 This enables to use the test class also as normal class. 11 * Every method annotated with @Test is a test12 * The method annotated with @Before is run before every test.13 * The method annotated with @After is run after every test.14 18 15 19 The @RunWith annotation is to be placed right before the class definition.