为什么 maven-failsafe 插件不选择集成测试
Why maven-failsafe plugin not picking integration tests
我将 maven-failsafe-plugin 配置为 运行 我的集成包下的测试。
这是代码
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<argLine>${itCoverageAgent} -Xmx1024m</argLine>
<skipITs>${skipIT}</skipITs>
<includes>
<include>**/integration/**</include>
</includes>
<trimStackTrace>false</trimStackTrace>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
但这不是在集成包下挑选测试
下面是 maven-failsafe-plugin 的响应
[INFO]
[INFO] --- maven-failsafe-plugin:3.0.0-M5:integration-test (default) @ mds-core ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
但是相同的配置在另一个模块中工作。无法找到原因。
请帮助我。
我有以下工件依赖项
junit-platform-runner,
junit-platform-suite-api,
junit-platform-launcher,
评论完这些依赖后,它正在选择集成测试。
我将 maven-failsafe-plugin 配置为 运行 我的集成包下的测试。
这是代码
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<argLine>${itCoverageAgent} -Xmx1024m</argLine>
<skipITs>${skipIT}</skipITs>
<includes>
<include>**/integration/**</include>
</includes>
<trimStackTrace>false</trimStackTrace>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
但这不是在集成包下挑选测试
下面是 maven-failsafe-plugin 的响应
[INFO]
[INFO] --- maven-failsafe-plugin:3.0.0-M5:integration-test (default) @ mds-core ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
但是相同的配置在另一个模块中工作。无法找到原因。 请帮助我。
我有以下工件依赖项
junit-platform-runner,
junit-platform-suite-api,
junit-platform-launcher,
评论完这些依赖后,它正在选择集成测试。