Silly question, but I feel compelled to ask it; did you import the class for 
the @Test annotation?  If it's not finding the class you should get the error 
on the import line.

What do you mean by "enabled annotation processing"?


Christoph Jaehnigen wrote:
Hi,

being new to Maven and m2eclipse I'm trying to get TestNG unit tests
working with m2eclipse. The environment is the following:

eclipse 3.4
m2eclipse 2.1.0

For a start I just generated an project from the
maven-archetype-quickstart archetype which brings a JUnit sample test
suite. This I wanted to modify to use TestNG. Here the @Test
annotations are not reckognized by the eclipse parser.

I included the TestNG dependency in the POM:

    <dependency>
        <groupId>org.testng</groupId>
        <artifactId>testng</artifactId>
        <version>5.8</version>
        <classifier>jdk15</classifier>
        <scope>test</scope>
    </dependency>

I also set the JDK compliance level to 1.5 for the project and enabled
annotation processing. Didn't help so far.

Do I need to add classes to the classpath? Which ones? What could be
the problem.

Thx for any help
Chris

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to