22 Apr 2004 10:13
Re: Maven test not picking up test cases
On 21 Apr 2004, at 16:29, Jim Downing wrote: > Hi, > > I'm trying to get maven to run groovy unit tests. I've lifted the > pertinent sections of groovy's own maven.xml to deal with the test > compilation etc, and I've got maven.test.search.classdir=true in > project.properties. > > The test runs for test:single, but isn't picked up by maven test. Is > this a result of using maven.test.search.classdir=true, or should it > still work? > > Project.xml > =========== > > <project> > ... > <build> > <nagEmailAddress/> > <sourceDirectory>src/java</sourceDirectory> > <unitTestSourceDirectory>src/test</unitTestSourceDirectory> > <unitTest> > <includes> > <include>**/*Test.java</include> > <include>**/*Test.groovy</include> Try use **/*Test.* or **/*Test.class and it should work. i.e. it needs to search for *.class files. James ------- http://radio.weblogs.com/0112098/
RSS Feed