Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
None
-
None
-
None
Description
Is there a way to configure the distribution of tests in pom.xml to run on different machines like how we do in testng.xml(Eg: below)
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Google Test" data-provider-thread-count="4" parallel="tests" thread-count="4">
<test name="Regression Testing">
<parameter name="browser" value="firefox"></parameter>
<parameter name="remote Url" value="http://hemanthip:5555/wd/hub"></parameter>
<classes>
<class name="org.google.modules.SearchModuleTest" ></class>
</classes>
</test>
<test name="Test2">
<parameter name="Browser" value="chrome"></parameter>
<parameter name="remote Url" value="http://hemanthip:4567/wd/hub"></parameter>
<classes>
<class name="org.google.modules.TC03" ></class>
<class name="org.google.modules.TC04" ></class>
</classes>
</test>
</suite>
</plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<suiteXmlFiles>
<file>src/test/resources/testng.xml</file>
</suiteXmlFiles>
<properties>
<property>
<name>testnames</name>
<value>Regression Testing,Test2</value>
</property>
</properties>
</configuration>
</plugin>
</plugins>
Can I do something similar inside the pom.xml for Junit?
Unfortunately there is no documentation on this. I am assuming that there isn't.
Thank you in advance.