Hello Wim,
 sorry havent' had a look at TestNG in a bit (i m doing it on my leasure
time..which is almost null).

I m sure there are parameters in TestNG with which you can configure
dynamically
the tests that run (for example, by making all tests part of the same group
and specifying which
test to run.. i m sure you can use wildcard with packages..).
Pls have a look at TestNG documentation (or TestNG mailing list), you will
find more help there

hth
marco

On 11/22/06, Wim Deblauwe <[EMAIL PROTECTED]> wrote:

Thanks, that runs my tests. It a pity that I have to add all my packages
to
my testng.xml file. Do you know a way to say: recursively from this one?

This is what I got now:

<suite name="All tests" verbose="1">
    <test name="All tests">
        <packages>
            <package name="net.sourceforge.vigilog"/>
            <package name="net.sourceforge.vigilog.parse"/>
            <package name="net.sourceforge.vigilog.models"/>
        </packages>
        <classes>
            <class name="
net.sourceforge.vigilog.parse.Log4jXMLFileLogFileParserTest">
                <methods>
                    <exclude name="testBigFileParsing"/>
                </methods>
            </class>
        </classes>
    </test>

regards,

Wim

2006/11/22, Marco Mistroni <[EMAIL PROTECTED]>:
>
> Hello,
>   try with this
>
> <dependencies>
>     <dependency>
>       <groupId>org.testng</groupId>
>       <artifactId>testng</artifactId>
>       <version>5.1</version>
>       <scope>test</scope>
>       <classifier>jdk15</classifier>
>     </dependency>
>   </dependencies>
>
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <configuration>
>           <suiteXmlFiles>
>             <suiteXmlFile>src/test/resources/testing.xml</suiteXmlFile>
>           </suiteXmlFiles>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>
>
>
> hth
> marco
>
>


Reply via email to