0
次のように私は私のmaven-failsafe-plugin
が設定されている:IntegrationTestの名前に基づいて作業ディレクトリを設定できますか?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.19.1</version>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>**/*IntegrationTest.java</include>
</includes>
<workingDirectory>${project.build.directory}/integration-test/</workingDirectory>
<skipTests>${skipITs}</skipTests>
</configuration>
</execution>
</executions>
</plugin>
を今私が何をしたいのか、目的のフォルダに別のディレクトリで実行し、私の統合テストのそれぞれを持っている - 私は、それぞれのログを確認することができるように1。
がいる可能性がある - 例えば、何かのように:<workingDirectory>${project.build.directory}/integration-test/${integration.test.name}</workingDirectory>
私はフェールセーフプラグインを使用してこれを行うことはできないと思います。ただし、ログをstdoutにリダイレクトできます。テストごとに異なる出力ファイルがあるので、ログラインを分離することができます。 – GauravJ