Good question ???? Arnaud
On 21/10/2007, Wim Deblauwe <[EMAIL PROTECTED]> wrote: > > I don't understand either why surefire is not top-priority for the maven > devs to have everthing working that JUnit and TestNG support. Especially > since testing is part of the default lifecycle. > > regards, > > Wim > > > 2007/10/19, Joel Wiegman <[EMAIL PROTECTED]>: > > > > Thanks for the response Patrick. > > > > I'm not having problems using Junit 4 (I'm actually using Surefire > > version 2.4-collab-SNAPSHOT because 2.4-SNAPSHOT is still broken). > > > > Just having problems getting any of the suite functionality to work. > > Frustrating... > > > > -----Original Message----- > > From: Patrick He [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 18, 2007 11:10 PM > > To: Maven Users List > > Subject: Re: Junit 4 or TestNG 5 suite support > > > > Hello Joel Wiegman, > > > > You can put below lines in your pom.xml for supporting JUnit 4. > > > > <build> > > <plugins> > > <plugin> > > <artifactId>maven-surefire-plugin</artifactId> > > <version>2.3</version> > > </plugin> > > </plugins> > > </build> > > > > > > Joel Wiegman wrote: > > > Members of the Maven council... > > > > > > Is Surefire's support for "suite" functionality limited to Junit 3? > > > > > > TestNG's @BeforeSuite and @AfterSuite annotations are not supported by > > > > > Surefire. > > > > > > Junit 4's equivalent to these methods are to set up a class as > > follows: > > > > > > @RunWith(value=Suite.class) > > > @SuiteClasses(value={MyFirstTest.class, AnotherTest.class}) public > > > class AllTests { > > > > > > @BeforeClass > > > public void doStuffBeforeSuiteRuns() { > > > ... > > > } > > > > > > @AfterClass > > > public void doStuffAfterSuiteRuns() { > > > ... > > > } > > > > > > @Test > > > public void testMyStuff() { > > > ... > > > } > > > > > > } > > > > > > I then point Surefire to this class and it says no tests were found > > > (!!!) (and yes, it found the class). Even the testMyStuff() method > > > was not found as a test! > > > > > > Is there some matrix out there that shows what annotations are > > > supported by Surefire? Does anyone else out there have code running > > > before/after their suites with Junit 4 or TestNG 5? Is my only option > > > > > here Junit 3 (frown)? > > > > > > Thanks so much! > > > > > > Joel > > > > > > --------------------------------------------------------------------- > > > 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] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Vigilog - an open source log file viewer: http://vigilog.sourceforge.net > Blog: http://www.jroller.com/page/Fester > -- .......................................................... Arnaud HERITIER .......................................................... OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .......................................................... ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...........................................................