简体   繁体   中英

Maven surefire plugin default strategy to run tests

Im using MavenSureFire plugin to run unit test , but I couldn't find what's Surefire plugin default Strategy to run test cases. Does it run parallel or sequential ? Below is my plugin configuration in pom . I've one suite class , which contains multiple SubClasses . What is the execution strategy of subclasses ?

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
                <includes>
                    <include>${runSuite}</include>
                </includes>
            </configuration>
        </plugin>

Note: I've configured any parallel execution so far.

It should run in the naming order of the class (alphabetically). I assume it has nothing to do with maven but goes by the java convention of executing the class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM