First off, here's a good "junit 4.0 in just 10 minutes" tutorial. It
also includes details on running JUnit4 tests in JUnit3:
http://www.instrumentalservices.com/content/view/45/52/

This topic has been discussed on the JUnit Yahoogroup email list, so
I'd suggest taking a look there for more examples... But the general
idea is covered on that jroller blog post Brett linked aka use
JUnitTestAdapters.

Wayne

On 4/9/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> Support has been submitted (but not yet tested) and is likely to be
> included in surefire plugin 2.2, along with the already implemented
> and tested testNG support.
>
> In the mean time, you might try this technique:
> http://www.jroller.com/page/eu?entry=running_junit_4_test_cases
>
> - Brett
>
> On 4/10/06, Jakub Pawlowicz <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Does anybody know if there's a way to use JUnit 4 with maven-surefire-
> > plugin?
> > It seems that classes which are using the JUnit 4 (annotations etc)
> > are not executed using the standard 'mvn test' command.
> >
> > The surefire plugin has a direct dependency on JUnit 3.8.1, so I
> > guess there is the problem.
> > But I don't know if there's a way to change it (in my pom.xml) to
> > JUnit 4.
> >
> > I'm using Maven 2.0.3 and maven-surefire-plugin 2.1.3 and have all
> > sources compiled for Java 5.
> >
> > Thanks in advance.
> > Best regards,
> > Jakub Pawlowicz
> >
> > ---------------------------------------------------------------------
> > 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