You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Amar (JIRA)" <ji...@codehaus.org> on 2014/05/22 22:38:10 UTC

[jira] (SUREFIRE-1079) Maven surefire plugin running testng tests multiple times (parallel builds)

Amar created SUREFIRE-1079:
------------------------------

             Summary: Maven surefire plugin running testng tests multiple times (parallel builds)
                 Key: SUREFIRE-1079
                 URL: https://jira.codehaus.org/browse/SUREFIRE-1079
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Plugin
    Affects Versions: 2.14.1
         Environment: Spring 3.x, Maven 3.x, Surefire 2.14.1
            Reporter: Amar


We have a multi module project which has close to 10-15 modules each with its unit tests written using TestNG.

When i run the build as following. I see that my tests are running 3 times. 
Can you please let me know what i'm doing wrong ?

mvn clean package -DrunCassandra -U -T 3C


Surefire plugin config
=================
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.14.1</version>
                <configuration>
                    <parallel>classes</parallel>
                    <systemPropertyVariables>
                               .....
                               .....
                    </systemPropertyVariables>
                    <trimStackTrace>false</trimStackTrace>
                    <includes>
                        <include>**/*Test.java</include>
                        <include>**/Test*.java</include>
                    </includes>
                    <excludes>
                        <exclude>**/*IT.java</exclude>
                        <exclude>**/it/**</exclude>
                    </excludes>
                </configuration>
            </plugin>



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)