Hi Jason, Just an idea that I've used in the Cactus plugin: Why not automatically find all the java classes that inherit from TestCase, is not an Abstract class and has at least one method starting with "test"?
If you're interested, I have written a Jelly tag for that in http://cvs.apache.org/viewcvs/jakarta-turbine-maven/src/plugins-build/ca ctus/src/java/org/apache/maven/cactus/CactusScanner.java This jelly tag could be refactored inside the maven sources and be made more generic (simply by passing as a parameter to the tag the name of the class that the searched test classes must extend (o.j.TestCase for junit and o.a.c.AbstractTestCase for Cactus). Sorry, I don't have the time to implement this now... -Vincent > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: 12 December 2002 00:45 > To: [EMAIL PROTECTED] > Subject: cvs commit: jakarta-turbine-maven/src/plugins-build/test > plugin.jelly > > jvanzyl 2002/12/11 16:44:52 > > Modified: src/plugins-build/test plugin.jelly > Log: > o exclude abstract tests from being executed. > > Revision Changes Path > 1.27 +2 -0 jakarta-turbine-maven/src/plugins- > build/test/plugin.jelly > > Index: plugin.jelly > =================================================================== > RCS file: /home/cvs/jakarta-turbine-maven/src/plugins- > build/test/plugin.jelly,v > retrieving revision 1.26 > retrieving revision 1.27 > diff -u -r1.26 -r1.27 > --- plugin.jelly 8 Dec 2002 18:16:51 -0000 1.26 > +++ plugin.jelly 12 Dec 2002 00:44:52 -0000 1.27 > @@ -80,6 +80,8 @@ > <j:forEach var="pat" > items="${pom.build.unitTest.excludes}"> > <exclude name="${pat}"/> > </j:forEach> > + <!-- KEEP ALL ABSTRACT TESTS FROM BEING RUN! --> > + <exclude name="**/*Abstract*.java"/> > </fileset> > </batchtest> > </junit> > > > > > -- > To unsubscribe, e-mail: <mailto:turbine-maven-dev- > [EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:turbine-maven-dev- > [EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
