Thanks Gilles,

Hmmmm, but do you know where I can get some nice information how to perform junit testing correctly with Maven (can't find it 123) ?

To me it's unclear how I build my test classes such that I can use them in my build for other test classes in another subproject ?

Regards,
Ed Bras


From: Gilles Dodinet <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Maven Eclipse Contribution
Date: Wed, 07 Jan 2004 18:42:16 +0100

Eddie,

unitTestSourceDirectory is used to specify the directory where the test case _sources_ are located, whereas unit/resources is used to allow one to specify (possibly multiple) directories where unit test _resources_ are located (f.i. test configuration files). what is true however is that the last time (many months ago) i looked at this plugin resources (unit test ones as well as build ones) were not added to the .classpath. i even rewrote it entirely (see http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPECLIPSE-2), but the submission has not yet been integrated and i guess it will never be ;)


-- gd


Eddie Post wrote:

Hellu,

I had some problems getting the eclipse plugin to work well with the Junit syntax.
I noticed that the eclipse plugin work with the following syntax in the project.xml:
----
<unitTestSourceDirectory> ${basedir}/src/test </unitTestSourceDirectory>
----


However, I noticed in the maven manual that you should use (I think the other is depriated):
-----
<unitTest>
<resources>
<resource>
<directory>${basedir}/src/test</directory>
</resource>
</resources>
</unitTest>
-----




_________________________________________________________________
Play online games with your friends with MSN Messenger http://messenger.msn.nl/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to