i have a single pom.xml which includes all Integration Tests. These tests run in alphabetical order
is there a way in maven to split the test suite into different groups within the same pom.xml and run the tests group wise?
Example: below is an extract of my current pom.xml
<build>
<plugins>
<plugin>
<runOrder>alphabetical</runOrder>
<configuration>
<includes><!--All the Integration tests jumbled up-->
<include><BackendFeatureA_IT></include>
<include><FrontEndFeatureA_IT></include>
<include>BackendFeatureB_IT</include>
<include>FrontEndFeatureB_IT</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Our build job takes in the above pom and executes all the tests alphabetically.
I would like organize the above pom into some thing like below:
<build>
<backend-feature-integration-test>
<includes><!Include only backend-features IT->
<include><BackendFeatureA_IT></include>
<include>BackendFeatureB_IT</include>
</includes>
</backend-feature-integration-test>
<frontend-integration-tests>
<includes>
<include>FrontEndFeatureA_IT</include>
</include>FrontEndFeatureB_IT</include>
</includes>
</frontend-integration-tests>
</build>
Aucun commentaire:
Enregistrer un commentaire