[
https://jira.codehaus.org/browse/SUREFIRE-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=353579#comment-353579
]
Tibor Digana commented on SUREFIRE-1103:
----------------------------------------
@Miyata,
runOrder=balanced works with parallel=classes in 2.18. We fixed
runOrder=balanced in 2.18-SNAPSHOT few days ago.
The runOrder=balanced could not work in previous releases < 2.18.
I understand your needs. I also would like to have balanced order for whatever
parallel (which is kept in my memory), but since I have quite a lot of fixes to
do I cannot promis such of feature in 2.18.
You can still open feature request, but currently the priority would be
considered minor because we have a lot of other major open issues to fix.
> The total amount of threads are not used with test classes nested by
> Enclosed.class.
> ------------------------------------------------------------------------------------
>
> Key: SUREFIRE-1103
> URL: https://jira.codehaus.org/browse/SUREFIRE-1103
> Project: Maven Surefire
> Issue Type: Bug
> Components: Junit 4.7+ (parallel) support
> Affects Versions: 2.16, 2.17
> Environment: JDK 7 on Linux
> JUnit 4.11
> Reporter: Miyata Jumpei
> Assignee: Tibor Digana
>
> It seems that the total amount of threads are not used with test classes
> nested by Enclosed.class.
> For example, I created a project with the following setting.
> {code}
> <plugin>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.17</version>
> <configuration>
> <parallel>classes</parallel>
> <threadCount>4</threadCount>
> <perCoreThreadCount>false</perCoreThreadCount>
> </configuration>
> </plugin>
> {code}
> And, create 4 test classes like the following.
> {code}
> @RunWith(Enclosed.class)
> public class Test {
> public static class InnerTest {
> @Test
> public void test1() throws InterruptedException {
> Thread.sleep(1000l);
> }
> }
> }
> {code}
> It takes 4 seconds to execute the 4 tests.
> With 2.15, it takes only 1 second.
> It seems that the outer tests are not parallelly-processed until all inner
> tests are processed.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)