maven-surefire-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Petruk <Igor_Pet...@epam.com>
Subject Surefire random number of tests
Date Fri, 22 Apr 2011 09:42:02 GMT
Here is my SureFire config

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.8.1</version>
                        <dependencies>
                          <dependency>
                            <groupId>org.apache.maven.surefire</groupId>
                            <artifactId>surefire-junit47</artifactId>
                            <version>2.8.1</version>
                          </dependency>
                        </dependencies>

                    <configuration>
                        <parallel>none</parallel>
                        <forkMode>once</forkMode>
                        <threadCount>4</threadCount>
                        <excludes>
                            <exclude>**/manual/**</exclude>
                        </excludes>
                        <argLine>-Xmx1024m -XX:MaxPermSize=128m</argLine>
                    </configuration>
                </plugin>

When I run my test set I get different number of tests executed. When the "parallel"="none"
I get about the half, but different each time. If I enable parallel test execution then the
number of tests is smaller.

What could be an issue? How does forkMode relates to this issue?

Spring 3.0.5, JUnit 4.8.2

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message