Hi, I actually saw that. This will get the test jar available in your other project, but Surefire doesn't execute the tests in the jar. You would have to write additional code I think to reference the classes in the jar. I think Stephen's suggestion is going to have to be the one we try for now with depending on the jar, and extracting the classes so that Surefire can see them.
Thanks, j -----Original Message----- From: Stephen Connolly [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 10, 2008 5:03 PM To: Maven Users List Subject: Re: Surefire Plugin and test-jar dependencies cool On Wed, Sep 10, 2008 at 9:04 PM, Dan Tran <[EMAIL PROTECTED]> wrote: > > http://maven.apache.org/plugins/maven-surefire-plugin/faq.html#reuse-tes t-code > > > > On Wed, Sep 10, 2008 at 12:58 PM, Stephen Connolly > <[EMAIL PROTECTED]> wrote: > > The only way I know of at the moment is to use the dependency plugin to > > unpack the test jar into the test-classes folder. > > > > crappy I know! > > > > -Stephen > > > > On Wed, Sep 10, 2008 at 7:00 PM, Vogelsang, Jeff <[EMAIL PROTECTED] > >wrote: > > > >> Hello, > >> > >> > >> > >> We have a multi-module maven project where we want to run tests that are > >> in a first module verbatim in a second module. It would seem a good > >> solution to this would be to package up a test-jar artifact from the > >> first project and make the second project depend on that test-jar. > >> Unfortunately, there doesn't seem to be any clear way to make the > >> Surefire plugin see those tests and run them from the jar. It looks like > >> Surefire is only aware of actual files on the file system in the > >> directories ${project.build.testSourceDirectory} and > >> ${project.build.testOutputDirectory} . Am I missing anything? Is there a > >> way to point Surefire at a test-jar and have it run the tests directly > >> from the jar? > >> > >> > >> > >> Thanks, > >> > >> > >> > >> j > >> > >> > >> > >> ********************* > >> Please note our new address, effective September 22, 2008: > >> > >> 652 Peter Jefferson Pkwy, Suite 300 > >> Charlottesville, VA 22911 > >> > >> All phone/fax numbers and email addresses will remain the same. > >> ********************* > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ********************* Please note our new address, effective September 22, 2008: 652 Peter Jefferson Pkwy, Suite 300 Charlottesville, VA 22911 All phone/fax numbers and email addresses will remain the same. ********************* --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
