<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    <argLine>-Xmx256m</argLine>
                    <testFailureIgnore>false</testFailureIgnore>

                    *<suiteXmlFiles>

<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
                    </suiteXmlFiles>
*
                    <excludes>
                        <exclude>**/selenium/*Test.java</exclude>
                        <exclude>**/*$*</exclude>
                    </excludes>
                </configuration>

                <executions>
                    <execution>
                        <id>surefire-it</id>
                        <phase>integration-test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            *<suiteXmlFiles>

<suiteXmlFile>src/test/resources/testng-functional.xml</suiteXmlFile>
                            </suiteXmlFiles>*
                            <excludes>
                                <exclude>none</exclude>
                            </excludes>
                            <includes>
                                <include>**/selenium/*Test.java</include>
                            </includes>
                        </configuration>
                    </execution>

                </executions>

            </plugin>


On Wed, Sep 24, 2008 at 2:36 PM, Mark Derricutt <[EMAIL PROTECTED]> wrote:

> In the config you first post, only one of your executions mentions a XML
> file so it'll ignore (or generate) your testng.xml.  What what maven/testng
> stuff I've done - if you mention the suitexml file then groups/exclusions
> defined in the pom are ignored ( or should be ).
>
> On Thu, Sep 25, 2008 at 6:37 AM, Mick Knutson <[EMAIL PROTECTED]
> >wrote:
>
> > What I want to have, is testng.xml tests run once in the test phase, and
> > testng-functional.xml tests to run once in the integration-test phase.
> >
> > Right now, I have the cfg I sent. So I have my testng.xml tests running
> > twice in the test phase, and the testng-functional.xml tests running
> twice
> > in the integration-test phase.
> >
>



-- 
---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com

Reply via email to