You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mfs <fa...@gmail.com> on 2007/09/12 17:55:28 UTC
suite in junit and maven 2 - do they work together
Hello Folks,
Am looking into how having a suite in junit4 (or even earlier versions) can
integrate with the way maven2 runs the junit test-cases, i mean if we are
using maven to run the test-cases, can having a suite make any
difference?...because maven eventually will be running all methods which
have @Test as a prefix (for Junit 4) or otherwise run methods with test as
prefix (for junit3 and earlier). Does sure-fire plugin has any support for
it ? doesnt seem so ?
Thanks and Regards,
Farhan.
--
View this message in context: http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: suite in junit and maven 2 - do they work together
Posted by Farhan Sarwar <fa...@gmail.com>.
Makes sense...thanks man.
Farhan.
On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> correct, i use profiles to configure the excludes/includes values depending
> on which test run i want to do.
>
> On 9/12/07, Farhan Sarwar <fa...@gmail.com> wrote:
> >
> > Sebastian...I assume that you still have to configure surefire to not
> > to run individual tests using the exclude attribute?, since otherwise
> > they would be invoked as well....
> > besides the suite which somewhat is being invoked programitically..
> >
> > Farhan.
> >
> > On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> > > My tests are spread across folders and projects. Each project has its
> > own
> > > suite test, with which you must register the individual tests. Then
> > there is
> > > a super suite which registers each project suite.
> > >
> > > To exclude or include the suite tests in the separate phases I am
> > running, i
> > > use maven includes and excludes elements in the surefire plugin.
> > >
> > > On 9/12/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > > >
> > > > interesting but not a good way to go ahead with (as also you
> > > > suggested), more because this way you would have to configure in every
> > > > project's pom the directory where the test-cases reside (so as to
> > > > exclude them) what if the test-cases reside in one more than one
> > > > folder (for a single project) the same would need to be done for all,
> > > > which is sort of cumbersome, it would have been great if there was
> > > > someway we could have configured surefire to run the suites (i.e. if
> > > > found in a project) instead of the individual test-cases, don't know
> > > > if thats too much of an expectation..
> > > >
> > > > Farhan.
> > > >
> > > >
> > > > On 9/12/07, Jim Sellers <ji...@gmail.com> wrote:
> > > > > You can hack it to run a test suite. I found this on a post
> > somewhere,
> > > > so
> > > > > don't give the credit to me. :-)
> > > > >
> > > > > <!-- To force maven to run the test suite -->
> > > > > <plugin>
> > > > > <groupId>org.apache.maven.plugins</groupId>
> > > > > <artifactId>maven-surefire-plugin</artifactId>
> > > > > <configuration>
> > > > > <!-- To force maven to run the suite -->
> > > > > <includes>
> > > > > <include>**/MavenSuite.java</include>
> > > > > </includes>
> > > > > <excludes>
> > > > > <exclude>**/*Test.java</exclude>
> > > > > </excludes>
> > > > > </configuration>
> > > > > </plugin>
> > > > >
> > > > > public class MavenSuite extends TestCase {
> > > > >
> > > > > /** The test result. */
> > > > > private TestResult tr;
> > > > >
> > > > > /** */
> > > > > public void testSuite() {
> > > > > TestSuite suite = (TestSuite) AllTests.suite();
> > > > > suite.run(tr);
> > > > > }
> > > > >
> > > > > /**
> > > > > * @see junit.framework.TestCase#run(junit.framework.TestResult)
> > > > > */
> > > > > public void run(TestResult res) {
> > > > > tr = res;
> > > > > testSuite();
> > > > > }
> > > > >
> > > > > }
> > > > >
> > > > > It's not as nice a solution since when surefire runs it looks like
> > it's
> > > > only
> > > > > running *one* test. I recommend not using a suite, but this was a
> > quick
> > > > > solution that I found for another project. I've only tried this
> > with
> > > > junit
> > > > > 3.8, jdk 1.4 (it was an older project)
> > > > >
> > > > > Jim
> > > > >
> > > > >
> > > > > On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> > > > > >
> > > > > > I had the this way working for a while using annotations like so:
> > > > > > @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> > > > > > @RunWith(Suite.class)
> > > > > > Using junit 4.2, but library conflicts and some transitive
> > dependency
> > > > on
> > > > > > junit 3.8 started causing errors.
> > > > > >
> > > > > > So now I have reverted to the old way like so:
> > > > > >
> > > > > >
> > > > > > public static junit.framework.Test suite() {
> > > > > >
> > > > > > TestSuite suite = new TestSuite();
> > > > > > suite.addTestSuite(ServicesSystemTestSuite.class);
> > > > > >
> > > > > > return suite;
> > > > > > }
> > > > > >
> > > > > >
> > > > > > On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> > > > > > >
> > > > > > > I looked at it at one point and came to the same conclusion that
> > > > there's
> > > > > > > no
> > > > > > > support for running suites. Wouldn't mind be proven wrong
> > though.
> > > > > > >
> > > > > > > Kalle
> > > > > > >
> > > > > > >
> > > > > > > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Hello Folks,
> > > > > > > >
> > > > > > > > Am looking into how having a suite in junit4 (or even earlier
> > > > > > versions)
> > > > > > > > can
> > > > > > > > integrate with the way maven2 runs the junit test-cases, i
> > mean if
> > > > we
> > > > > > > are
> > > > > > > > using maven to run the test-cases, can having a suite make any
> > > > > > > > difference?...because maven eventually will be running all
> > methods
> > > > > > which
> > > > > > > > have @Test as a prefix (for Junit 4) or otherwise run methods
> > with
> > > > > > test
> > > > > > > as
> > > > > > > > prefix (for junit3 and earlier). Does sure-fire plugin has any
> > > > support
> > > > > > > for
> > > > > > > > it ? doesnt seem so ?
> > > > > > > >
> > > > > > > > Thanks and Regards,
> > > > > > > >
> > > > > > > > Farhan.
> > > > > > > > --
> > > > > > > > View this message in context:
> > > > > > > >
> > > > > > >
> > > > > >
> > > >
> > http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > > > > > > Sent from the Maven - Users mailing list archive at Nabble.com
> > .
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Sebastian Johnck
> > > > > > (415) 425 - 8361
> > > > > >
> > > > > > ~~~~~~~~~~~~~~~~~~~
> > > > > > MotionBased Technologies
> > > > > > 180 Harbor Dr.
> > > > > > Sausalito, CA 94965
> > > > > > www.motionbased.com
> > > > > > Coordinates:
> > > > > > N 37° 51' 33"
> > > > > > W 122° 29' 08"
> > > > > > ~~~~~~~~~~~~~~~~~~~
> > > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Sebastian Johnck
> > >
> > > ~~~~~~~~~~~~~~~~~~~
> > > MotionBased, A Division of Garmin International
> > > 180 Harbor Dr.
> > > Sausalito, CA 94965
> > > www.motionbased.com
> > > Coordinates:
> > > N 37° 51' 33"
> > > W 122° 29' 08"
> > > ~~~~~~~~~~~~~~~~~~~
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Sebastian Johnck
>
> ~~~~~~~~~~~~~~~~~~~
> MotionBased, A Division of Garmin International
> 180 Harbor Dr.
> Sausalito, CA 94965
> www.motionbased.com
> Coordinates:
> N 37° 51' 33"
> W 122° 29' 08"
> ~~~~~~~~~~~~~~~~~~~
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: suite in junit and maven 2 - do they work together
Posted by Sebastian Johnck <sj...@gmail.com>.
correct, i use profiles to configure the excludes/includes values depending
on which test run i want to do.
On 9/12/07, Farhan Sarwar <fa...@gmail.com> wrote:
>
> Sebastian...I assume that you still have to configure surefire to not
> to run individual tests using the exclude attribute?, since otherwise
> they would be invoked as well....
> besides the suite which somewhat is being invoked programitically..
>
> Farhan.
>
> On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> > My tests are spread across folders and projects. Each project has its
> own
> > suite test, with which you must register the individual tests. Then
> there is
> > a super suite which registers each project suite.
> >
> > To exclude or include the suite tests in the separate phases I am
> running, i
> > use maven includes and excludes elements in the surefire plugin.
> >
> > On 9/12/07, Farhan Sarwar <fa...@gmail.com> wrote:
> > >
> > > interesting but not a good way to go ahead with (as also you
> > > suggested), more because this way you would have to configure in every
> > > project's pom the directory where the test-cases reside (so as to
> > > exclude them) what if the test-cases reside in one more than one
> > > folder (for a single project) the same would need to be done for all,
> > > which is sort of cumbersome, it would have been great if there was
> > > someway we could have configured surefire to run the suites (i.e. if
> > > found in a project) instead of the individual test-cases, don't know
> > > if thats too much of an expectation..
> > >
> > > Farhan.
> > >
> > >
> > > On 9/12/07, Jim Sellers <ji...@gmail.com> wrote:
> > > > You can hack it to run a test suite. I found this on a post
> somewhere,
> > > so
> > > > don't give the credit to me. :-)
> > > >
> > > > <!-- To force maven to run the test suite -->
> > > > <plugin>
> > > > <groupId>org.apache.maven.plugins</groupId>
> > > > <artifactId>maven-surefire-plugin</artifactId>
> > > > <configuration>
> > > > <!-- To force maven to run the suite -->
> > > > <includes>
> > > > <include>**/MavenSuite.java</include>
> > > > </includes>
> > > > <excludes>
> > > > <exclude>**/*Test.java</exclude>
> > > > </excludes>
> > > > </configuration>
> > > > </plugin>
> > > >
> > > > public class MavenSuite extends TestCase {
> > > >
> > > > /** The test result. */
> > > > private TestResult tr;
> > > >
> > > > /** */
> > > > public void testSuite() {
> > > > TestSuite suite = (TestSuite) AllTests.suite();
> > > > suite.run(tr);
> > > > }
> > > >
> > > > /**
> > > > * @see junit.framework.TestCase#run(junit.framework.TestResult)
> > > > */
> > > > public void run(TestResult res) {
> > > > tr = res;
> > > > testSuite();
> > > > }
> > > >
> > > > }
> > > >
> > > > It's not as nice a solution since when surefire runs it looks like
> it's
> > > only
> > > > running *one* test. I recommend not using a suite, but this was a
> quick
> > > > solution that I found for another project. I've only tried this
> with
> > > junit
> > > > 3.8, jdk 1.4 (it was an older project)
> > > >
> > > > Jim
> > > >
> > > >
> > > > On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> > > > >
> > > > > I had the this way working for a while using annotations like so:
> > > > > @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> > > > > @RunWith(Suite.class)
> > > > > Using junit 4.2, but library conflicts and some transitive
> dependency
> > > on
> > > > > junit 3.8 started causing errors.
> > > > >
> > > > > So now I have reverted to the old way like so:
> > > > >
> > > > >
> > > > > public static junit.framework.Test suite() {
> > > > >
> > > > > TestSuite suite = new TestSuite();
> > > > > suite.addTestSuite(ServicesSystemTestSuite.class);
> > > > >
> > > > > return suite;
> > > > > }
> > > > >
> > > > >
> > > > > On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> > > > > >
> > > > > > I looked at it at one point and came to the same conclusion that
> > > there's
> > > > > > no
> > > > > > support for running suites. Wouldn't mind be proven wrong
> though.
> > > > > >
> > > > > > Kalle
> > > > > >
> > > > > >
> > > > > > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hello Folks,
> > > > > > >
> > > > > > > Am looking into how having a suite in junit4 (or even earlier
> > > > > versions)
> > > > > > > can
> > > > > > > integrate with the way maven2 runs the junit test-cases, i
> mean if
> > > we
> > > > > > are
> > > > > > > using maven to run the test-cases, can having a suite make any
> > > > > > > difference?...because maven eventually will be running all
> methods
> > > > > which
> > > > > > > have @Test as a prefix (for Junit 4) or otherwise run methods
> with
> > > > > test
> > > > > > as
> > > > > > > prefix (for junit3 and earlier). Does sure-fire plugin has any
> > > support
> > > > > > for
> > > > > > > it ? doesnt seem so ?
> > > > > > >
> > > > > > > Thanks and Regards,
> > > > > > >
> > > > > > > Farhan.
> > > > > > > --
> > > > > > > View this message in context:
> > > > > > >
> > > > > >
> > > > >
> > >
> http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > > > > > Sent from the Maven - Users mailing list archive at Nabble.com
> .
> > > > > > >
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Sebastian Johnck
> > > > > (415) 425 - 8361
> > > > >
> > > > > ~~~~~~~~~~~~~~~~~~~
> > > > > MotionBased Technologies
> > > > > 180 Harbor Dr.
> > > > > Sausalito, CA 94965
> > > > > www.motionbased.com
> > > > > Coordinates:
> > > > > N 37° 51' 33"
> > > > > W 122° 29' 08"
> > > > > ~~~~~~~~~~~~~~~~~~~
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
> > --
> > Sebastian Johnck
> >
> > ~~~~~~~~~~~~~~~~~~~
> > MotionBased, A Division of Garmin International
> > 180 Harbor Dr.
> > Sausalito, CA 94965
> > www.motionbased.com
> > Coordinates:
> > N 37° 51' 33"
> > W 122° 29' 08"
> > ~~~~~~~~~~~~~~~~~~~
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Sebastian Johnck
~~~~~~~~~~~~~~~~~~~
MotionBased, A Division of Garmin International
180 Harbor Dr.
Sausalito, CA 94965
www.motionbased.com
Coordinates:
N 37° 51' 33"
W 122° 29' 08"
~~~~~~~~~~~~~~~~~~~
Re: suite in junit and maven 2 - do they work together
Posted by Farhan Sarwar <fa...@gmail.com>.
Sebastian...I assume that you still have to configure surefire to not
to run individual tests using the exclude attribute?, since otherwise
they would be invoked as well....
besides the suite which somewhat is being invoked programitically..
Farhan.
On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> My tests are spread across folders and projects. Each project has its own
> suite test, with which you must register the individual tests. Then there is
> a super suite which registers each project suite.
>
> To exclude or include the suite tests in the separate phases I am running, i
> use maven includes and excludes elements in the surefire plugin.
>
> On 9/12/07, Farhan Sarwar <fa...@gmail.com> wrote:
> >
> > interesting but not a good way to go ahead with (as also you
> > suggested), more because this way you would have to configure in every
> > project's pom the directory where the test-cases reside (so as to
> > exclude them) what if the test-cases reside in one more than one
> > folder (for a single project) the same would need to be done for all,
> > which is sort of cumbersome, it would have been great if there was
> > someway we could have configured surefire to run the suites (i.e. if
> > found in a project) instead of the individual test-cases, don't know
> > if thats too much of an expectation..
> >
> > Farhan.
> >
> >
> > On 9/12/07, Jim Sellers <ji...@gmail.com> wrote:
> > > You can hack it to run a test suite. I found this on a post somewhere,
> > so
> > > don't give the credit to me. :-)
> > >
> > > <!-- To force maven to run the test suite -->
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-surefire-plugin</artifactId>
> > > <configuration>
> > > <!-- To force maven to run the suite -->
> > > <includes>
> > > <include>**/MavenSuite.java</include>
> > > </includes>
> > > <excludes>
> > > <exclude>**/*Test.java</exclude>
> > > </excludes>
> > > </configuration>
> > > </plugin>
> > >
> > > public class MavenSuite extends TestCase {
> > >
> > > /** The test result. */
> > > private TestResult tr;
> > >
> > > /** */
> > > public void testSuite() {
> > > TestSuite suite = (TestSuite) AllTests.suite();
> > > suite.run(tr);
> > > }
> > >
> > > /**
> > > * @see junit.framework.TestCase#run(junit.framework.TestResult)
> > > */
> > > public void run(TestResult res) {
> > > tr = res;
> > > testSuite();
> > > }
> > >
> > > }
> > >
> > > It's not as nice a solution since when surefire runs it looks like it's
> > only
> > > running *one* test. I recommend not using a suite, but this was a quick
> > > solution that I found for another project. I've only tried this with
> > junit
> > > 3.8, jdk 1.4 (it was an older project)
> > >
> > > Jim
> > >
> > >
> > > On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> > > >
> > > > I had the this way working for a while using annotations like so:
> > > > @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> > > > @RunWith(Suite.class)
> > > > Using junit 4.2, but library conflicts and some transitive dependency
> > on
> > > > junit 3.8 started causing errors.
> > > >
> > > > So now I have reverted to the old way like so:
> > > >
> > > >
> > > > public static junit.framework.Test suite() {
> > > >
> > > > TestSuite suite = new TestSuite();
> > > > suite.addTestSuite(ServicesSystemTestSuite.class);
> > > >
> > > > return suite;
> > > > }
> > > >
> > > >
> > > > On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> > > > >
> > > > > I looked at it at one point and came to the same conclusion that
> > there's
> > > > > no
> > > > > support for running suites. Wouldn't mind be proven wrong though.
> > > > >
> > > > > Kalle
> > > > >
> > > > >
> > > > > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > > > > >
> > > > > >
> > > > > > Hello Folks,
> > > > > >
> > > > > > Am looking into how having a suite in junit4 (or even earlier
> > > > versions)
> > > > > > can
> > > > > > integrate with the way maven2 runs the junit test-cases, i mean if
> > we
> > > > > are
> > > > > > using maven to run the test-cases, can having a suite make any
> > > > > > difference?...because maven eventually will be running all methods
> > > > which
> > > > > > have @Test as a prefix (for Junit 4) or otherwise run methods with
> > > > test
> > > > > as
> > > > > > prefix (for junit3 and earlier). Does sure-fire plugin has any
> > support
> > > > > for
> > > > > > it ? doesnt seem so ?
> > > > > >
> > > > > > Thanks and Regards,
> > > > > >
> > > > > > Farhan.
> > > > > > --
> > > > > > View this message in context:
> > > > > >
> > > > >
> > > >
> > http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > > > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Sebastian Johnck
> > > > (415) 425 - 8361
> > > >
> > > > ~~~~~~~~~~~~~~~~~~~
> > > > MotionBased Technologies
> > > > 180 Harbor Dr.
> > > > Sausalito, CA 94965
> > > > www.motionbased.com
> > > > Coordinates:
> > > > N 37° 51' 33"
> > > > W 122° 29' 08"
> > > > ~~~~~~~~~~~~~~~~~~~
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> Sebastian Johnck
>
> ~~~~~~~~~~~~~~~~~~~
> MotionBased, A Division of Garmin International
> 180 Harbor Dr.
> Sausalito, CA 94965
> www.motionbased.com
> Coordinates:
> N 37° 51' 33"
> W 122° 29' 08"
> ~~~~~~~~~~~~~~~~~~~
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: suite in junit and maven 2 - do they work together
Posted by Sebastian Johnck <sj...@gmail.com>.
My tests are spread across folders and projects. Each project has its own
suite test, with which you must register the individual tests. Then there is
a super suite which registers each project suite.
To exclude or include the suite tests in the separate phases I am running, i
use maven includes and excludes elements in the surefire plugin.
On 9/12/07, Farhan Sarwar <fa...@gmail.com> wrote:
>
> interesting but not a good way to go ahead with (as also you
> suggested), more because this way you would have to configure in every
> project's pom the directory where the test-cases reside (so as to
> exclude them) what if the test-cases reside in one more than one
> folder (for a single project) the same would need to be done for all,
> which is sort of cumbersome, it would have been great if there was
> someway we could have configured surefire to run the suites (i.e. if
> found in a project) instead of the individual test-cases, don't know
> if thats too much of an expectation..
>
> Farhan.
>
>
> On 9/12/07, Jim Sellers <ji...@gmail.com> wrote:
> > You can hack it to run a test suite. I found this on a post somewhere,
> so
> > don't give the credit to me. :-)
> >
> > <!-- To force maven to run the test suite -->
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-surefire-plugin</artifactId>
> > <configuration>
> > <!-- To force maven to run the suite -->
> > <includes>
> > <include>**/MavenSuite.java</include>
> > </includes>
> > <excludes>
> > <exclude>**/*Test.java</exclude>
> > </excludes>
> > </configuration>
> > </plugin>
> >
> > public class MavenSuite extends TestCase {
> >
> > /** The test result. */
> > private TestResult tr;
> >
> > /** */
> > public void testSuite() {
> > TestSuite suite = (TestSuite) AllTests.suite();
> > suite.run(tr);
> > }
> >
> > /**
> > * @see junit.framework.TestCase#run(junit.framework.TestResult)
> > */
> > public void run(TestResult res) {
> > tr = res;
> > testSuite();
> > }
> >
> > }
> >
> > It's not as nice a solution since when surefire runs it looks like it's
> only
> > running *one* test. I recommend not using a suite, but this was a quick
> > solution that I found for another project. I've only tried this with
> junit
> > 3.8, jdk 1.4 (it was an older project)
> >
> > Jim
> >
> >
> > On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> > >
> > > I had the this way working for a while using annotations like so:
> > > @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> > > @RunWith(Suite.class)
> > > Using junit 4.2, but library conflicts and some transitive dependency
> on
> > > junit 3.8 started causing errors.
> > >
> > > So now I have reverted to the old way like so:
> > >
> > >
> > > public static junit.framework.Test suite() {
> > >
> > > TestSuite suite = new TestSuite();
> > > suite.addTestSuite(ServicesSystemTestSuite.class);
> > >
> > > return suite;
> > > }
> > >
> > >
> > > On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> > > >
> > > > I looked at it at one point and came to the same conclusion that
> there's
> > > > no
> > > > support for running suites. Wouldn't mind be proven wrong though.
> > > >
> > > > Kalle
> > > >
> > > >
> > > > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > > > >
> > > > >
> > > > > Hello Folks,
> > > > >
> > > > > Am looking into how having a suite in junit4 (or even earlier
> > > versions)
> > > > > can
> > > > > integrate with the way maven2 runs the junit test-cases, i mean if
> we
> > > > are
> > > > > using maven to run the test-cases, can having a suite make any
> > > > > difference?...because maven eventually will be running all methods
> > > which
> > > > > have @Test as a prefix (for Junit 4) or otherwise run methods with
> > > test
> > > > as
> > > > > prefix (for junit3 and earlier). Does sure-fire plugin has any
> support
> > > > for
> > > > > it ? doesnt seem so ?
> > > > >
> > > > > Thanks and Regards,
> > > > >
> > > > > Farhan.
> > > > > --
> > > > > View this message in context:
> > > > >
> > > >
> > >
> http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Sebastian Johnck
> > > (415) 425 - 8361
> > >
> > > ~~~~~~~~~~~~~~~~~~~
> > > MotionBased Technologies
> > > 180 Harbor Dr.
> > > Sausalito, CA 94965
> > > www.motionbased.com
> > > Coordinates:
> > > N 37° 51' 33"
> > > W 122° 29' 08"
> > > ~~~~~~~~~~~~~~~~~~~
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Sebastian Johnck
~~~~~~~~~~~~~~~~~~~
MotionBased, A Division of Garmin International
180 Harbor Dr.
Sausalito, CA 94965
www.motionbased.com
Coordinates:
N 37° 51' 33"
W 122° 29' 08"
~~~~~~~~~~~~~~~~~~~
Re: suite in junit and maven 2 - do they work together
Posted by Farhan Sarwar <fa...@gmail.com>.
interesting but not a good way to go ahead with (as also you
suggested), more because this way you would have to configure in every
project's pom the directory where the test-cases reside (so as to
exclude them) what if the test-cases reside in one more than one
folder (for a single project) the same would need to be done for all,
which is sort of cumbersome, it would have been great if there was
someway we could have configured surefire to run the suites (i.e. if
found in a project) instead of the individual test-cases, don't know
if thats too much of an expectation..
Farhan.
On 9/12/07, Jim Sellers <ji...@gmail.com> wrote:
> You can hack it to run a test suite. I found this on a post somewhere, so
> don't give the credit to me. :-)
>
> <!-- To force maven to run the test suite -->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <!-- To force maven to run the suite -->
> <includes>
> <include>**/MavenSuite.java</include>
> </includes>
> <excludes>
> <exclude>**/*Test.java</exclude>
> </excludes>
> </configuration>
> </plugin>
>
> public class MavenSuite extends TestCase {
>
> /** The test result. */
> private TestResult tr;
>
> /** */
> public void testSuite() {
> TestSuite suite = (TestSuite) AllTests.suite();
> suite.run(tr);
> }
>
> /**
> * @see junit.framework.TestCase#run(junit.framework.TestResult)
> */
> public void run(TestResult res) {
> tr = res;
> testSuite();
> }
>
> }
>
> It's not as nice a solution since when surefire runs it looks like it's only
> running *one* test. I recommend not using a suite, but this was a quick
> solution that I found for another project. I've only tried this with junit
> 3.8, jdk 1.4 (it was an older project)
>
> Jim
>
>
> On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> >
> > I had the this way working for a while using annotations like so:
> > @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> > @RunWith(Suite.class)
> > Using junit 4.2, but library conflicts and some transitive dependency on
> > junit 3.8 started causing errors.
> >
> > So now I have reverted to the old way like so:
> >
> >
> > public static junit.framework.Test suite() {
> >
> > TestSuite suite = new TestSuite();
> > suite.addTestSuite(ServicesSystemTestSuite.class);
> >
> > return suite;
> > }
> >
> >
> > On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> > >
> > > I looked at it at one point and came to the same conclusion that there's
> > > no
> > > support for running suites. Wouldn't mind be proven wrong though.
> > >
> > > Kalle
> > >
> > >
> > > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > > >
> > > >
> > > > Hello Folks,
> > > >
> > > > Am looking into how having a suite in junit4 (or even earlier
> > versions)
> > > > can
> > > > integrate with the way maven2 runs the junit test-cases, i mean if we
> > > are
> > > > using maven to run the test-cases, can having a suite make any
> > > > difference?...because maven eventually will be running all methods
> > which
> > > > have @Test as a prefix (for Junit 4) or otherwise run methods with
> > test
> > > as
> > > > prefix (for junit3 and earlier). Does sure-fire plugin has any support
> > > for
> > > > it ? doesnt seem so ?
> > > >
> > > > Thanks and Regards,
> > > >
> > > > Farhan.
> > > > --
> > > > View this message in context:
> > > >
> > >
> > http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Sebastian Johnck
> > (415) 425 - 8361
> >
> > ~~~~~~~~~~~~~~~~~~~
> > MotionBased Technologies
> > 180 Harbor Dr.
> > Sausalito, CA 94965
> > www.motionbased.com
> > Coordinates:
> > N 37° 51' 33"
> > W 122° 29' 08"
> > ~~~~~~~~~~~~~~~~~~~
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: suite in junit and maven 2 - do they work together
Posted by Jim Sellers <ji...@gmail.com>.
You can hack it to run a test suite. I found this on a post somewhere, so
don't give the credit to me. :-)
<!-- To force maven to run the test suite -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- To force maven to run the suite -->
<includes>
<include>**/MavenSuite.java</include>
</includes>
<excludes>
<exclude>**/*Test.java</exclude>
</excludes>
</configuration>
</plugin>
public class MavenSuite extends TestCase {
/** The test result. */
private TestResult tr;
/** */
public void testSuite() {
TestSuite suite = (TestSuite) AllTests.suite();
suite.run(tr);
}
/**
* @see junit.framework.TestCase#run(junit.framework.TestResult)
*/
public void run(TestResult res) {
tr = res;
testSuite();
}
}
It's not as nice a solution since when surefire runs it looks like it's only
running *one* test. I recommend not using a suite, but this was a quick
solution that I found for another project. I've only tried this with junit
3.8, jdk 1.4 (it was an older project)
Jim
On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
>
> I had the this way working for a while using annotations like so:
> @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> @RunWith(Suite.class)
> Using junit 4.2, but library conflicts and some transitive dependency on
> junit 3.8 started causing errors.
>
> So now I have reverted to the old way like so:
>
>
> public static junit.framework.Test suite() {
>
> TestSuite suite = new TestSuite();
> suite.addTestSuite(ServicesSystemTestSuite.class);
>
> return suite;
> }
>
>
> On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> >
> > I looked at it at one point and came to the same conclusion that there's
> > no
> > support for running suites. Wouldn't mind be proven wrong though.
> >
> > Kalle
> >
> >
> > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > >
> > >
> > > Hello Folks,
> > >
> > > Am looking into how having a suite in junit4 (or even earlier
> versions)
> > > can
> > > integrate with the way maven2 runs the junit test-cases, i mean if we
> > are
> > > using maven to run the test-cases, can having a suite make any
> > > difference?...because maven eventually will be running all methods
> which
> > > have @Test as a prefix (for Junit 4) or otherwise run methods with
> test
> > as
> > > prefix (for junit3 and earlier). Does sure-fire plugin has any support
> > for
> > > it ? doesnt seem so ?
> > >
> > > Thanks and Regards,
> > >
> > > Farhan.
> > > --
> > > View this message in context:
> > >
> >
> http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
>
>
> --
> Sebastian Johnck
> (415) 425 - 8361
>
> ~~~~~~~~~~~~~~~~~~~
> MotionBased Technologies
> 180 Harbor Dr.
> Sausalito, CA 94965
> www.motionbased.com
> Coordinates:
> N 37° 51' 33"
> W 122° 29' 08"
> ~~~~~~~~~~~~~~~~~~~
>
Re: suite in junit and maven 2 - do they work together
Posted by Sebastian Johnck <sj...@gmail.com>.
Sorry I forgot to include this, you need to have a test method in your suite
class that calls the suite and runs it. Like So.
@Test
public void testMe() {
System.out.println("Running Suite AllTests");
TestResult t = junit.textui.TestRunner.run(suite());
if (t.failureCount() > 0) {
fail("All Test suit Failed with " + t.failureCount() + "
failures, please investigate SureFireReports");
}
if (t.errorCount() > 0) {
fail("There were errors in the AllTests suite count:" +
t.errorCount());
}
}
Personally i run my suites on a separate run in order to not get mixed with
the rest of the tests and invoke the suite manually like so
mvn test -Dtest=SomeNameTest
On 9/12/07, Farhan Sarwar <fa...@gmail.com> wrote:
>
> but does maven invoke these suites for you during its build-cycle? as
> thats what i want
>
> On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> > I had the this way working for a while using annotations like so:
> > @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> > @RunWith(Suite.class)
> > Using junit 4.2, but library conflicts and some transitive dependency on
> > junit 3.8 started causing errors.
> >
> > So now I have reverted to the old way like so:
> >
> >
> > public static junit.framework.Test suite() {
> >
> > TestSuite suite = new TestSuite();
> > suite.addTestSuite(ServicesSystemTestSuite.class);
> >
> > return suite;
> > }
> >
> >
> > On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> > >
> > > I looked at it at one point and came to the same conclusion that
> there's
> > > no
> > > support for running suites. Wouldn't mind be proven wrong though.
> > >
> > > Kalle
> > >
> > >
> > > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > > >
> > > >
> > > > Hello Folks,
> > > >
> > > > Am looking into how having a suite in junit4 (or even earlier
> versions)
> > > > can
> > > > integrate with the way maven2 runs the junit test-cases, i mean if
> we
> > > are
> > > > using maven to run the test-cases, can having a suite make any
> > > > difference?...because maven eventually will be running all methods
> which
> > > > have @Test as a prefix (for Junit 4) or otherwise run methods with
> test
> > > as
> > > > prefix (for junit3 and earlier). Does sure-fire plugin has any
> support
> > > for
> > > > it ? doesnt seem so ?
> > > >
> > > > Thanks and Regards,
> > > >
> > > > Farhan.
> > > > --
> > > > View this message in context:
> > > >
> > >
> http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Sebastian Johnck
> > (415) 425 - 8361
> >
> > ~~~~~~~~~~~~~~~~~~~
> > MotionBased Technologies
> > 180 Harbor Dr.
> > Sausalito, CA 94965
> > www.motionbased.com
> > Coordinates:
> > N 37° 51' 33"
> > W 122° 29' 08"
> > ~~~~~~~~~~~~~~~~~~~
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Sebastian Johnck
(415) 425 - 8361
~~~~~~~~~~~~~~~~~~~
MotionBased Technologies
180 Harbor Dr.
Sausalito, CA 94965
www.motionbased.com
Coordinates:
N 37° 51' 33"
W 122° 29' 08"
~~~~~~~~~~~~~~~~~~~
Re: suite in junit and maven 2 - do they work together
Posted by Wayne Fay <wa...@gmail.com>.
If you use the plugin configuration he provided, then yes, Maven will
automatically invoke the suites in the test phase.
Wayne
On 9/12/07, Farhan Sarwar <fa...@gmail.com> wrote:
> but does maven invoke these suites for you during its build-cycle? as
> thats what i want
>
> On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> > I had the this way working for a while using annotations like so:
> > @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> > @RunWith(Suite.class)
> > Using junit 4.2, but library conflicts and some transitive dependency on
> > junit 3.8 started causing errors.
> >
> > So now I have reverted to the old way like so:
> >
> >
> > public static junit.framework.Test suite() {
> >
> > TestSuite suite = new TestSuite();
> > suite.addTestSuite(ServicesSystemTestSuite.class);
> >
> > return suite;
> > }
> >
> >
> > On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> > >
> > > I looked at it at one point and came to the same conclusion that there's
> > > no
> > > support for running suites. Wouldn't mind be proven wrong though.
> > >
> > > Kalle
> > >
> > >
> > > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > > >
> > > >
> > > > Hello Folks,
> > > >
> > > > Am looking into how having a suite in junit4 (or even earlier
> versions)
> > > > can
> > > > integrate with the way maven2 runs the junit test-cases, i mean if we
> > > are
> > > > using maven to run the test-cases, can having a suite make any
> > > > difference?...because maven eventually will be running all methods
> which
> > > > have @Test as a prefix (for Junit 4) or otherwise run methods with
> test
> > > as
> > > > prefix (for junit3 and earlier). Does sure-fire plugin has any support
> > > for
> > > > it ? doesnt seem so ?
> > > >
> > > > Thanks and Regards,
> > > >
> > > > Farhan.
> > > > --
> > > > View this message in context:
> > > >
> > >
> http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Sebastian Johnck
> > (415) 425 - 8361
> >
> > ~~~~~~~~~~~~~~~~~~~
> > MotionBased Technologies
> > 180 Harbor Dr.
> > Sausalito, CA 94965
> > www.motionbased.com
> > Coordinates:
> > N 37° 51' 33"
> > W 122° 29' 08"
> > ~~~~~~~~~~~~~~~~~~~
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: suite in junit and maven 2 - do they work together
Posted by Farhan Sarwar <fa...@gmail.com>.
but does maven invoke these suites for you during its build-cycle? as
thats what i want
On 9/12/07, Sebastian Johnck <sj...@gmail.com> wrote:
> I had the this way working for a while using annotations like so:
> @Suite.SuiteClasses( { ServicesSystemTestSuite.class })
> @RunWith(Suite.class)
> Using junit 4.2, but library conflicts and some transitive dependency on
> junit 3.8 started causing errors.
>
> So now I have reverted to the old way like so:
>
>
> public static junit.framework.Test suite() {
>
> TestSuite suite = new TestSuite();
> suite.addTestSuite(ServicesSystemTestSuite.class);
>
> return suite;
> }
>
>
> On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
> >
> > I looked at it at one point and came to the same conclusion that there's
> > no
> > support for running suites. Wouldn't mind be proven wrong though.
> >
> > Kalle
> >
> >
> > On 9/12/07, mfs <fa...@gmail.com> wrote:
> > >
> > >
> > > Hello Folks,
> > >
> > > Am looking into how having a suite in junit4 (or even earlier versions)
> > > can
> > > integrate with the way maven2 runs the junit test-cases, i mean if we
> > are
> > > using maven to run the test-cases, can having a suite make any
> > > difference?...because maven eventually will be running all methods which
> > > have @Test as a prefix (for Junit 4) or otherwise run methods with test
> > as
> > > prefix (for junit3 and earlier). Does sure-fire plugin has any support
> > for
> > > it ? doesnt seem so ?
> > >
> > > Thanks and Regards,
> > >
> > > Farhan.
> > > --
> > > View this message in context:
> > >
> > http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > > Sent from the Maven - Users mailing list archive at Nabble.com.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
>
>
> --
> Sebastian Johnck
> (415) 425 - 8361
>
> ~~~~~~~~~~~~~~~~~~~
> MotionBased Technologies
> 180 Harbor Dr.
> Sausalito, CA 94965
> www.motionbased.com
> Coordinates:
> N 37° 51' 33"
> W 122° 29' 08"
> ~~~~~~~~~~~~~~~~~~~
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: suite in junit and maven 2 - do they work together
Posted by Sebastian Johnck <sj...@gmail.com>.
I had the this way working for a while using annotations like so:
@Suite.SuiteClasses( { ServicesSystemTestSuite.class })
@RunWith(Suite.class)
Using junit 4.2, but library conflicts and some transitive dependency on
junit 3.8 started causing errors.
So now I have reverted to the old way like so:
public static junit.framework.Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(ServicesSystemTestSuite.class);
return suite;
}
On 9/12/07, Kalle Korhonen <ka...@gmail.com> wrote:
>
> I looked at it at one point and came to the same conclusion that there's
> no
> support for running suites. Wouldn't mind be proven wrong though.
>
> Kalle
>
>
> On 9/12/07, mfs <fa...@gmail.com> wrote:
> >
> >
> > Hello Folks,
> >
> > Am looking into how having a suite in junit4 (or even earlier versions)
> > can
> > integrate with the way maven2 runs the junit test-cases, i mean if we
> are
> > using maven to run the test-cases, can having a suite make any
> > difference?...because maven eventually will be running all methods which
> > have @Test as a prefix (for Junit 4) or otherwise run methods with test
> as
> > prefix (for junit3 and earlier). Does sure-fire plugin has any support
> for
> > it ? doesnt seem so ?
> >
> > Thanks and Regards,
> >
> > Farhan.
> > --
> > View this message in context:
> >
> http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
--
Sebastian Johnck
(415) 425 - 8361
~~~~~~~~~~~~~~~~~~~
MotionBased Technologies
180 Harbor Dr.
Sausalito, CA 94965
www.motionbased.com
Coordinates:
N 37° 51' 33"
W 122° 29' 08"
~~~~~~~~~~~~~~~~~~~
Re: suite in junit and maven 2 - do they work together
Posted by Kalle Korhonen <ka...@gmail.com>.
I looked at it at one point and came to the same conclusion that there's no
support for running suites. Wouldn't mind be proven wrong though.
Kalle
On 9/12/07, mfs <fa...@gmail.com> wrote:
>
>
> Hello Folks,
>
> Am looking into how having a suite in junit4 (or even earlier versions)
> can
> integrate with the way maven2 runs the junit test-cases, i mean if we are
> using maven to run the test-cases, can having a suite make any
> difference?...because maven eventually will be running all methods which
> have @Test as a prefix (for Junit 4) or otherwise run methods with test as
> prefix (for junit3 and earlier). Does sure-fire plugin has any support for
> it ? doesnt seem so ?
>
> Thanks and Regards,
>
> Farhan.
> --
> View this message in context:
> http://www.nabble.com/suite-in-junit-and-maven-2---do-they-work-together-tf4430242s177.html#a12638433
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>