http://maven.apache.org/plugins/maven-surefire-plugin/faq.html#reuse-test-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]