Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
group1、group2、group3などのいくつかのtestngテストグループがあります。これらはpom.xmlで定義されており、「mvntest」を実行するとすべて実行されます。pom.xmlで構成されたグループを変更せずに、1つのグループのみを実行するために何を実行する必要がありますか。
つまり、mvn test group2 mvn test group1 mvn test group3
試す
mvn test -Dgroups=group3,group2
グループを組み合わせたテストを実行することもできます。これにより、「group1」と「group2」の両方でマークされたテストが実行されます。
mvn test -Dgroups=group1&group2