Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Junit 4.x support
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
Is there any plan to support using JUnit 4.6 Parallel excecution with Maven2 Surefire plugin?
Reference:
https://sourceforge.net/project/shownotes.php?release_id=675664&group_id=15278
Example Java Code:
public static class Example {
@Test public void one() throws InterruptedException {
Thread.sleep(1000);
}
@Test public void two() throws InterruptedException { Thread.sleep(1000); } }
}
@Test public void testsRunInParallel() {
long start= System.currentTimeMillis();
Result result= JUnitCore.runClasses(ParallelComputer.methods(), Example.class);
assertTrue(result.wasSuccessful());
long end= System.currentTimeMillis();
assertThat(end - start, betweenInclusive(1000, 1500));
}
Tks.
Issue Links
| This issue is duplicated by: | ||||
| SUREFIRE-555 | Support junit core for parallel running of tests |
|
|
|
I believe this issue can be closed since the duplicate
SUREFIRE-555is fixed.SUREFIRE-555is fixed.