JUnit 4.6 - Test parallel excecution
------------------------------------

                 Key: SUREFIRE-553
                 URL: http://jira.codehaus.org/browse/SUREFIRE-553
             Project: Maven Surefire
          Issue Type: Improvement
          Components: Junit 4.x support
            Reporter: Marcelo Felix


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.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to