对于有关maven-failsafe-plugin的这个非常基本的问题,我很抱歉,但是我对maven不太熟悉。
maven-failsafe-plugin来运行集成测试?mvn verify不能像mvn test执行单元测试那样执行集成测试?发布于 2015-06-12 20:12:15
mvn test执行单元测试,因为Maven具有从test到surefire:test的默认绑定,这意味着,如果您执行阶段test,Maven将使用目标test调用尽责插件。但是,集成测试或验证阶段没有默认绑定,因此您必须自己指定故障安全插件。
发布于 2015-08-16 19:53:52
完全同意邓尼的回答。再加几分。
1. Though it is not a good practise, you could configure maven-surefire-plugin to also run the integration tests without the failsafe-plugin.
https://stackoverflow.com/questions/30810227
复制相似问题