Changes between Version 135 and Version 136 of j2p


Ignore:
Timestamp:
09/30/24 15:31:18 (5 weeks ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v135 v136  
    367367=== Unit Tests, @Test
    368368The junit-t plugin helps translation of org.junit components.
    369 In python, a class with tests must extend {{{unittest.TestCase}}}. This allows discovery by the py test tools. In Python the mechanism is slightly different, requiring the test class to extend TestCase. To support the translation mechanism and make our lives a bit easier, j2p requires all tests to be annotates with @RunWith. Use the following, depending on what kind of test you want to run:
     369
     370All tests **must** be annotates with @RunWith if this plugin is used. Use the following, depending on what kind of test you want to run:
    370371
    371372||= test type in java =||= use java annotation =||
    372373||normal @Test methods||{{{@RunWith(JUnit4ClassRunner.class)}}}||
    373374||parametric test     ||{{{@RunWith(Parameterized.class)}}}||
    374 
    375375
    376376== GeniusWebTranslator