Yes, we use the src directories and specify the .java form ( never noticed the difference in maven until now!). The *Test*.java naming convention is questionalble since I have BaseTestCase.java that should not be executed. The convention I've used and seems to be prevalent when using ant is to use the *Test.java form. Other options are still to define an AllTests.java and explicitly setup your testsuites. This is useful for using the TestSetup decorator.
In short: +1 to using the sources and source directory for locating the test cases -1 for default pattern sets. Let the project define them, no implicit/default behavior defined. ================================================================= Jeffrey D. Brekke Quad/Graphics [EMAIL PROTECTED] http://www.qg.com > -----Original Message----- > From: Jason van Zyl [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 29, 2002 9:26 AM > To: [EMAIL PROTECTED] > Subject: [maven] testing set > > > Hi, > > After going through a little run of trying to setup latka I > think there > may be a better way to do the testing. David Peugh suggested using the > source references instead of class references which is what I > would like > to do. > > So we would have something like the following: > > <sourceDirectories> > <sourceDirectorysrc/java</sourceDirectory> > </sourceDirectories> > > > <testSourceDirectories> > <testSourceDirectory>src/test</testSourceDirectory> > </testSourceDirectories> > > > Where you will notice that the <testSourceDirectories> only > include the > paths for directories with tests in them. We can wrangle the > process so > that the <sourceDirectories> are aggregated with > <testSourceDirectories> > when compiling so that everything is there and we can have something > like the following: > > <unitTestEntries> > <unitTestEntry>include = **/*Test*.java</unitTestEntry> > </unitTestEntries> > > And in the <batchtest> we will use only the <testSourceDirectories> in > the <fileset> so that we can avoid having to deal with > non-test sources > all together, plus using the sources (as David Peugh pointed > out) means > that we don't have to explicity exclude inner classes. > > We might even be able to have a default behaviour where the > **/*Test*.java pattern in implicit so that people don't have to define > <unitTestEntries> unless they want to exclude something. > > Makes sense? > > Thoughts? > > > > -- > jvz. > > Jason van Zyl > [EMAIL PROTECTED] > > http://tambora.zenplex.org > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
