0
TestNG xmlでtestNGテストを実行しているmavenプロジェクトがあります。 XMLは、次のリスナーTestNGレポートに21を超えるテストが表示されない
<listener class-name="org.uncommons.reportng.HTMLReporter" />
<listener class-name="org.uncommons.reportng.JUnitXMLReporter" />
私はそれらのすべてをXMLで24回のテストを持って実行しているパッケージは、すべての24回のテストが実行何らかの理由で
<test name="First Test"
preserve-order="true">
<packages>
<package
name="testProject.first.*" />
</packages>
</test>
例えばなく、TestNGのレポートで私は今まで見てい21のテスト。表示されている21のテストは必ずしも一貫しているとは限らないので、いくつかのテストの設定に伴う問題の可能性を排除します。私は可能な限り多くのテストが実行され、テストを組み合わせる必要があるかどうか疑問に思っていますか?または設定可能なテストパラメータの最大数がありますか?
次は私のmaven-確実な - プラグインの設定は、任意のヘルプ
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<properties>
<property>
<name>usedefaultlisteners</name>
<value>false</value>
</property>
<property>
<name>listener</name>
<value>org.uncommons.reportng.HTMLReporter,org.uncommons.reportng.JUnitXMLReporter</value>
</property>
<systemPropertyVariables>
<environment>${env.browser}</environment>
</systemPropertyVariables>
<systemPropertyVariables>
<environment>${env.environment}</environment>
</systemPropertyVariables>
<systemPropertyVariables>
<environment>${env.testlinkRelease}</environment>
</systemPropertyVariables>
</properties>
<suiteXmlFiles>
<suiteXmlFile>src/testCleanup/${cleanup.suite}</suiteXmlFile>
<suiteXmlFile>src/limelightTests/${test.suite}</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
おかげです。
あなたの ''設定を表示できますか? –
Hatley
@Hatleyは私の質問に情報を追加しました –
解決策を得る最良の方法は、問題をgithubに再現した簡単なプロジェクトを追加することです。問題はどこにあるのかはっきりしません。あなたの問題を複製するgithubに最小のコード/プロジェクトを追加できれば –