mavenからTest Suitesを並列にしたいです。 私のpom.xmlは、以下のようになります。mavenとTestngで並列スイートを実行する方法
<profiles>
<profile>
<id>API_AUTOMATION</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<parallel>suites</parallel>
<threadCount>8</threadCount>
<suiteXmlFiles>
<!-- TestNG suite XML files -->
<suiteXmlFile>./module1.xml</suiteXmlFile>
<suiteXmlFile>./module2.xml</suiteXmlFile>
</suiteXmlFiles>
<testSourceDirectory>src/main/java</testSourceDirectory>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
すべて.xml
ファイルはテストスイートですTestNG
ファイルです。 私に教えてください、どのように並列にスイートを実行する。
として設定します。 [Surefireのドキュメント](http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html#Running_Tests_in_Parallel)では、「」ではなく、「」ではありませんが、テスト(おそらくエラー、最初に ''と書かれています)。残りはOKです。 –
次のコマンドを使ってテストを実行しました。 'mvn clean test -Dmaven.test.failure.ignore = true -Djdk.level = 1.7 -P API_AUTOMATION'ですが、テスト並列を実行せず、順番に実行しました。 –