Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

surefire-n-exec

JUnit4/TestNG provider for Maven Surefire that will rerun all tests a specified number of times.

To use it (after installing), add it as a dependency to the surefire plugin (NOT a dependency of your entire build! Just for surefire), and configure the number of times to rerun each test (total runs = 1 + reruns). Or, add my maven repo... https://maven.jonbell.net/repository/snapshots

IMPORTANT For it to work you need to specify that each test runs in its own process (reuseForks=false)!

Example (replace artifactId with surefire-n-exec-testng):

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
                <dependencies>
                    <dependency>
                        <artifactId>surefire-n-exec-junit4</artifactId>
                        <groupId>edu.gmu.swe.surefire</groupId>
                        <version>2.19.1</version>
                    </dependency>
                </dependencies>
                <configuration>
					<forkCount>1</forkCount>
					<reuseForks>false</reuseForks>
                    <properties>
                        <property>
                            <name>rerunAllTests</name>
                            <value>100</value>
                        </property>
                    </properties>
                </configuration>
            </plugin>
        </plugins>
</build>

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published

Languages