2
我想两次执行完整的Maven Integration -Test Lifecyle(pre-integration-test
,integration-test
,post-integration-test
)。如何执行两次Maven Integration-测试Lifecyle阶段
我使用cargo-maven2-plugin
在pre-integration-test
阶段启动一个tomcat并关闭它在post-integration-test
。在之间(在integration-test
)我使用maven-failsafe-plugin
来运行集成测试。
问题是我有两种不同的服务器配置(可以使用相同的集成测试进行测试)。我需要对它们进行测试。但我没有资源并行运行两台服务器。所以,我需要重复完整的集成测试两次:
pre-integration-test (1)
integration-test (1)
post-integration-test (1)
pre-integration-test (2)
integration-test (2)
post-integration-test (2)
有没有人有这样的想法如何修改maven lifecyle?
好的,这是一个很好的工作周。 – Ralph
我仍然很难想象这应该如何工作。 (目前它是一个简单的单模块Maven项目),我需要将它拆分为多模块项目:4个模块:war,integrationtest-code,integration-test-execution1和integration-test-execution2。 - 这是你的建议吗? – Ralph
是的。听起来不错。 – khmarbaise