为什么 maven-surefire-plugin 在我的集成测试中 运行
Why maven-surefire-plugin would run on my integration test
我在集成测试中看到 surefire 插件 运行 很奇怪。有人知道为什么吗?
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ xxxx ---
[INFO] Surefire report directory: /Users/jzhang/github/project/module-A/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running package.XXXXIT
是的。这是自然的。您需要告诉 maven-surefire-plugin 跳过以 *IT.java.
结尾的测试的执行
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version>
<configuration>
<excludes>
<exclude>**/*IT.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
我在集成测试中看到 surefire 插件 运行 很奇怪。有人知道为什么吗?
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ xxxx ---
[INFO] Surefire report directory: /Users/jzhang/github/project/module-A/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running package.XXXXIT
是的。这是自然的。您需要告诉 maven-surefire-plugin 跳过以 *IT.java.
结尾的测试的执行<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version>
<configuration>
<excludes>
<exclude>**/*IT.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>