Hi Arnaud,
Merci pour la reponse. I was thinking about the 2 options you mentioned...
Since then I think that I have found a solution, in the sub pojects I add the
classes of other sub project as resources:
So for sub-project B:
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
<excludes>
<exclude>**/Abstract*.java</exclude>
</excludes>
<resources>
<resource>
<directory>../sub-project-A/target/test-classes</directory>
<filtering>false</filtering>
<includes>
<include>**/*.class</include>
</includes>
</resource>
</resources>
</unitTest>
Seems to work for me...
Best regards
Benoit
----- Original Message ----
From: Arnaud HERITIER <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>; Benoit Xhenseval <[EMAIL
PROTECTED]>
Sent: Monday, September 4, 2006 12:39:01 PM
Subject: Re: [m1] Test in sub-project depending on tests in another
sub-project...
I see two solutions (not really clean :-( ) :
- In the sub-project-A you add your tests in the artifact (you copy the content
of maven.test.dest in maven.build.dest or you set maven.test.dest =
maven.build.dest).
- You move your tests in another external project (sub-project-A-tests) but you
have to execute them manually.
I have no other idea.
Arnaud
On 9/4/06, Benoit Xhenseval <[EMAIL PROTECTED]> wrote: Hi *,
I'm struggling on this one... with Maven 1.1-rcx
sub-project A defines some tests in src/test (as per convention)
sub-project B defines some tests in src/test (as per convention)
Problem is that the tests in B extend the AbstractTests in A/src/test
how could I define a dependency for the unit tests on the tests in A?
At the moment, they do not compile...
Any suggestion welcome...
Many thanks
Benoit