I do have a Spring project with integrations tests **IT.java, performance tests **PT.java and ordinary tests. all test are usual tests but testing different functionalities.
in local env during mvn install I would like to skip IT an PT tests (which can be done with skipTests variable).
surefire plugin:
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<trimStackTrace>false</trimStackTrace>
<classpathDependencyExcludes>
<classpathDependencyExclude>org.liquibase:liquibase-core</classpathDependencyExclude>
</classpathDependencyExcludes>
<excludes>
<exclude>**/*IT</exclude>
<exclude>**/*PT</exclude>
</excludes>
</configuration>
</plugin>
if I add this to skip IT test during mvn install:
<executions>
<execution>
<id>integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>**/*IT</include>
</includes>
</configuration>
</execution>
</executions>
it has no impact --> surefire plugin runs test phase (excluding IT and PT test) and automatically runs the integration-test phase where IT tests are included...
How to categorize/group tests to be managable via surefire plugin? How can I add category/group for PT test - surefire plugin does not have phase for them?
Thank you very much guys.
Iahve tired surefire plugin configuration I found in various already asked questions but nothing solved the problem. especialy if I wnat to categorize/group tests. How do I get my Maven Integration tests to run