Мне нужно выполнить тесты в одном классе. поэтому я добавил код для моего «pom.xml».Как выполнить тесты в одном классе с помощью pom.xml?
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/integration/**</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>${skipTests}</skip>
<excludes>
<exclude>**/integration/**</exclude>
</excludes>
<includes>
<include>**/integration/reports/**</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
В папке интеграции у меня есть отдельные папки. Поэтому мне нужно выполнить те тесты, которые находятся в папке с отчетами. Выполняя эту команду «mvn clean -Dtest = ReportTest test».
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
Как выполнить тесты, мне нужно изменить команду pom или выполнить команду.