Java Mailing List Archive

http://www.java2.5341.com/

Home » Maven Users List »

Adding a GroovyTestCase to a maven project

Ed

2008-11-16

Replies: Find Java Web Hosting

Author LoginPost Reply
I'd like to use Groovy for unit testing a maven project, but I'm not
sure how to configure the project so the groovy file containing the
GroovyTestCase will compile and execute.

I added the groovy-all-1.5.6.jar as a dependency in the top level pom.
          <dependency>
     <groupId>org.codehaus.groovy</groupId>
     <artifactId>groovy-all</artifactId>
     <version>1.5.6</version>
     <scope>test</scope>
   </dependency>

I also added a GroovyTestCase file to src/test/java, and of course, it
did not execute.

I added the file to a src/test/groovy folder and it still did not execute.

Is the only way to get this to work by using the GMaven plugin?

--
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.