...let John help you code



POM.xml file changes to run jUnit suite using maven

Asked by:
qAsker
Dec 01, 2016, 13:21

1 Answer

Answer :
Code

Preview
 

6

You should try by adding property called <runSuite> into pom as:
<properties>
<runSuite>**/YourTestSuiteName</runSuite>
</properties>

and also update the maven surefire plugin like below:
        <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>${runSuite}</include>
</includes>
</configuration>
</plugin>

Adding the above plugin will make sure that it will run YourTestSuiteName only
selPat