I suppose you're using junit. The information you've provided is not enough
to be sure, but maybe you manually forced using junit4 in eclipse but you
left it in junit3 in you pom.xml?

By the way, if you can provide a gist of your pom and test or even better a
test project, I guess this will be easier to help you.

Cheers
Le 12 mars 2013 23:29, "mike" <[email protected]> a écrit :

> Hi,
>
> When I execute my testng testcase from within Eclipse I get the following
> result:
>
> Tests run: 1, Failures: 0, Skips: 1
>
> But when I use maven test I get the following for the same testcase:
>
> Failed tests:
>   beforeClass(com.mycompany.NewTest)
>
> Failures: 1 Skips: 0
>
> Anyone seen this before?
>
> br,
>
> //mike
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Problem-when-running-testng-testcase-tp5750454.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to