2

これが私がやろうとしていることです:

[...]
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.5</version>
  <configuration>
    <excludes>
      <exclude>**/*JSFTest.java</exclude>
    </excludes>
    <executions>
      <execution>
        <phase>integration-test</phase>
        <goals>
          <goal>test</goal>
        </goals>
        <configuration>
          <excludes>
            <!-- intentionally empty to override configuration above -->
          </excludes>
          <includes>
            <include>**/*JSFTest.java</include>
          </includes>
        </configuration>
      </execution>
    </executions>
  </plugin>

私の習慣<execution>では、コンテナ内ですべてのJSF関連のテストを実行する必要があります。残念ながら、テストは見つかりません。<includes>動作しないようです。フェーズ中<excludes>にこれらのテストを効果的に除外しますtest。ここで何が問題になっていますか?

4

2 に答える 2

2

自己へのメモとしてもっと:;-)

<excludes>
    <exclude>none</exclude>
<excludes>

空の除外は機能しません。

于 2011-07-19T09:34:56.627 に答える
1

統合テストと同じプロジェクトでのテストの両方を行う方法については、こちらをご覧ください。

http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

私の好みはmaven-failsafe-plugin

于 2010-12-03T07:25:49.850 に答える