Hi Marco,

On Sep 20, 2006, at 10:56 AM, Marco Mistroni wrote:

hi all,
i m trying to run my tests using maven2 and testNG
i followed instructions at   http://testng.org/doc/maven.html

You need to have a testing.xml.

See http://www.nabble.com/product-codes-at-java-1.4%2C-test-sources- at-java-1.5-tf2213975.html#a6134698

This is what I have:
  <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>

And in testing.xml:

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"; >

<suite name="Suite1"    verbose="1" >
  <test name="Nopackage" >
    <classes>
       <class name="com.knotfast.Iso8601DateTest"  />
    </classes>
  </test>
</suite>

Cheers,
Eric



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to