Hello,

well, I was facing exactly the same problems and none of the solutions given here helped me. I am using the maven-surefire-plugin in version 2.2 but I have not specified a testng.xml file. The result is, that none of my tests get executed. If I provide a testng.xml file my unit tests are executed! Hm, so I digged a little bit further and found the Issue http://jira.codehaus.org/browse/MSUREFIRE-117 in Jira.

I tried the fix and it solves the problem. Now my TestNG unit tests are 
executed even if I do not specify a testng.xml file.

The issue is still open and not confirmed. Can anybody out there confirm that it is a bug and will get fixed in one of the next versions?

Thanks in advance

Ralf

Toto Laricot wrote:
Hi,

I had the same problem until I realized I wasn't specifying theright
version number (<version>2.2</version>) for the surefire plugin:

<plugin>
       <groupId>org.apache.maven.plugins</groupId>
       <artifactId>maven-surefire-plugin</artifactId>
       <version>2.2</version>
       <configuration>
         <suiteXmlFiles>
           <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
         </suiteXmlFiles>
       </configuration>
   </plugin>

On 6/15/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:

HELLO
not sure if your question was for me.. i can run tests as of today
iwthouth
any problems..

hth
marco

On 6/15/06, SlinnHawkins, Jon (ELS) <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Are you using Junit TestSuites to kick off the tests ?
>
> There is an issue with the current verion (2.2) of the surefire plugin.
It
> has been fixed but not released....
>
> http://jira.codehaus.org/browse/MSUREFIRE-113
>
> Can anyone give an indication when this will be released, as I am also
> waiting on this ?
>
> Thanks
>
> Jon
>
> "Chandresh Taunk" < [EMAIL PROTECTED]> wrote in message
> news:<[EMAIL PROTECTED]>...
> ?I'm using maven2 in a project and for unit tests I'm using testng.
>
> When I execute 'mvn test' none of the tests run.
>
> Here's the output:
>
> Running FooTest
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016sec
> Running BarTest
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
> Running BazTest
> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
>
> All of the test methods have @Test annotation applied.
>
> Any idea why the tests are not running?
>
> ----------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




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

Reply via email to