You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2010/01/05 02:01:55 UTC
[jira] Closed: (SUREFIRE-553) JUnit 4.6 - Test parallel excecution
[ http://jira.codehaus.org/browse/SUREFIRE-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed SUREFIRE-553.
---------------------------------
Resolution: Duplicate
> 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