[ https://jira.codehaus.org/browse/SUREFIRE-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Miyata Jumpei closed SUREFIRE-1103. ----------------------------------- Resolution: Not A Bug > 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)