と統合しようとしjbehave-maven-plugin
ていcargo-maven2-plugin
ます。
jbehave-maven-plugin
integration-test
フェーズ中に実行するように構成されています
<configuration>
<scope>compile</scope>
<ignoreFailureInStories>true</ignoreFailureInStories>
<ignoreFailureInView>false</ignoreFailureInView>
<verboseFailures>true</verboseFailures>
<batch>true</batch>
...
</configuration>
<executions>
<execution>
<id>run-stories-as-embeddables</id>
<phase>integration-test</phase>
<goals>
<goal>run-stories-as-embeddables</goal>
</goals>
</execution>
cargo-maven2-plugin
cargo:startサーバーを構成しwar
、pre-integration-test
段階的にweb アプリを展開し、 cargo:stopサーバーを段階的に展開するpost-integration-test
私の意図は
- サーバーを起動し、
pre-integration-test
段階的にアプリをデプロイします - jBehave テストを
integration-test
段階的に実行する - サーバーを
post-integration-test
段階的に停止する verify
段階的にテストの失敗を報告する
このセットアップを実行しようとすると
mvn clean verify
テストの失敗がない場合は正常に動作します。
ただし、テストが失敗すると、Maven はintegration-test
フェーズで停止し、残りのフェーズは実行されません。これにより、サーバーの停止に失敗します。
verify
レポートが生成され、失敗が段階的に報告されるように、このセットアップを機能させる方法はありますか
Maven Failsafe Pluginが 2 つの異なる目標 ( failsafe:integration-test
& ) を使用するのと同じようにfailsafe:verify
?