maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemanth (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SUREFIRE-1299) Distributed testing using junit inside pom.xml(just like testnames property in testng maven)
Date Sat, 05 Nov 2016 21:12:58 GMT

     [ https://issues.apache.org/jira/browse/SUREFIRE-1299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hemanth updated SUREFIRE-1299:
------------------------------
    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 the same inside the pom.xml?
Unfortunately there is no documentation on this. I am assuming that there isn't.

  was:
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>

Can I do the same inside the pom.xml?
Unfortunately there is no documentation on this. I am assuming that there isn't.


> Distributed testing using junit inside pom.xml(just like testnames property in testng
maven)
> --------------------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1299
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1299
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Junit 4.7+ (parallel) support, TestNG support
>            Reporter: Hemanth
>            Priority: Minor
>
> 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 the same inside the pom.xml?
> Unfortunately there is no documentation on this. I am assuming that there isn't.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message