Maven Surefire

JUnit 4.6 - Test parallel excecution

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Junit 4.x support
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

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

Activity

Hide
Kristian Rosenvold added a comment -

I believe this issue can be closed since the duplicate SUREFIRE-555 is fixed.

Show
Kristian Rosenvold added a comment - I believe this issue can be closed since the duplicate SUREFIRE-555 is fixed.

People

Vote (5)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: