Hello developers,
It would be great if PUnit could run existnig JUnit4 test suites "out-of-the-box" without having to create an extra class with a main method which creates the runner (Solo or Concurrent). This could be solved with annotations with something similar to the following:
@RunWith(Suite.class)
@Suite.SuiteClasses({
CalculatorTest.class,
SquareTest.class
})
@PUnitRunner(ConcurrentRunner.class)
@PUnitThreadCount(10)
public class AllTests {
// No test suite body needed with JUnit4 (see SuiteClasses annotation)
}
This would have the following benefits:
*Integration with IDE's like Eclipse, you can still run all your test suites and get the graphical & textual feedback, simply clicking on the red tests that failed and get to the proper place in the code.
*Less testclasses to write = less administration & overhead.
*Less work to upgrade from JUnit4 to PUnit
*Common convention in line with JUnit4
Best Regards / Vassago
Logged In: YES
user_id=254508
Originator: NO
This would be great.