After "merging" the two lines, I have some tests that don't pass but it's not
linked to the not founded classes. It seems to be the resources that can't be
seen, but the solution same solution should work for that.
So thanks !
define 'stats-api' do compile.with
les_projets(['commons-metier','stats-persistence']), EHCACHE,
COMMONS_COLLECTIONS compile.with SPRING_SEUL
test.with project("stats-persistence").test.compile.target,
project('commons-test'), DB_UNIT, MOCKITO package :jar end
--- En date de : Jeu 19.8.10, [email protected]
<[email protected]> a écrit :
De: [email protected] <[email protected]>
Objet: Re: Including a jar with src/test/java
À: [email protected], [email protected]
Date: Jeudi 19 août 2010, 10h29
Hi,
Thanks for your suggestion, the error is now different but means the same
thing. We don't have the 100 tests failing BUT the build is aborted on a
noclass found error. (probably because it is in the src/test/java of the
dependency).
define 'stats-api' do compile.with
les_projets(['commons-metier','stats-persistence']), EHCACHE,
COMMONS_COLLECTIONS compile.with SPRING_SEUL # attention,
commons embarque SPRING : confit ? test.compile.with
(project("stats-persistence").test.compile.target) test.with
project('commons-test'), DB_UNIT, MOCKITO package :jar end
Cheers,Florence.
--- En date de : Mer 18.8.10, Antoine Toulme <[email protected]> a écrit :
De: Antoine Toulme <[email protected]>
Objet: Re: Including a jar with src/test/java
À: [email protected], [email protected]
Date: Mercredi 18 août 2010, 18h31
Is it in the same Buildfile ?
If yes, then this should work:
test.compile.with (project("foo").test.compile.target)
On Wed, Aug 18, 2010 at 09:22, <[email protected]> wrote:
> Hi everyone (hope I'm not spamming),
> I have a test that is using another test in another project.
> Should I make a jar with only the classes of src/test/java and include this
> project as a test dependencies (like in maven
> http://maven.apache.org/plugins/maven-jar-plugin/test-jar-mojo.html) ?
> I tried to include the src/test/java folder in the actual jar (just to see)
> with compile.from('src/test/java') but it does not seem to do the trick.
> Thanks for any help,Cheers,Florence.
>
>
>
>