Miyata Jumpei created SUREFIRE-1103: ---------------------------------------
Summary: 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.17, 2.16 Environment: JDK 7 on Linux JUnit 4.11 Reporter: Miyata Jumpei 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. I hope 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)