次のようにあなたはこれを行うことができます。
あなたのpom.xmlは次のセットアップが含まれている必要があります。
<configuration>
<excludes>
<exclude>**/TestCircle.java</exclude>
<exclude>**/TestSquare.java</exclude>
</excludes>
</configuration>
あなたが正規表現のサポートをしたい場合は、単にあなたがカテゴリーアノテーションを使用する場合は、次の操作を行う必要があり
<excludes>
<exclude>%regex[.*[Cat|Dog].*Test.*]</exclude>
</excludes>
http://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
を使用する:あなたは
@Category(com.myproject.annotations.Exclude)
@Test
public testFoo() {
....
}
あなたはこのようなものを持つことができます
<configuration>
<excludedGroups>com.myproject.annotations.Exclude</excludedGroups>
</configuration>
これをコマンドラインで行う方法は? –
@AnatoliiStepaniuk use -DexcludedGroups = – kazanaki
確信のために 'excludedGroups'を参照するものは何も見つかりません – Hafiz