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