Changes between Version 135 and Version 136 of j2p
- Timestamp:
- 09/30/24 15:31:18 (5 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v135 v136 367 367 === Unit Tests, @Test 368 368 The 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 370 All tests **must** be annotates with @RunWith if this plugin is used. Use the following, depending on what kind of test you want to run: 370 371 371 372 ||= test type in java =||= use java annotation =|| 372 373 ||normal @Test methods||{{{@RunWith(JUnit4ClassRunner.class)}}}|| 373 374 ||parametric test ||{{{@RunWith(Parameterized.class)}}}|| 374 375 375 376 376 == GeniusWebTranslator