Changes between Version 5 and Version 6 of unitpy


Ignore:
Timestamp:
09/30/24 15:38:29 (8 weeks ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • unitpy

    v5 v6  
    55
    66UnitPy has a number of improvements over the standard method using Testcase:
    7 * the test class does not need to extend unittest.TestCase
     7* the test class must not extend {{{unittest.TestCase}}}
    88* the test class constructor does not need modifications (TestCase requires the name of the test function to be passed as additional argument).
    99* 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
    1017This enables to use the test class also as normal class.
    11 * Every method annotated with @Test is a test
    12 * The method annotated with @Before is run before every test.
    13 * The method annotated with @After is run after every test.
    1418
    1519The @RunWith annotation is to be placed right before the class definition.