maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Awaragi <pier...@email.com>
Subject multi-module unit testing
Date Mon, 01 Oct 2007 22:23:20 GMT

Hi All,

i hope that this question was not asked before as I am new to maven and to
this forum. I am trying to build a multi-module project with three modules:
libraries A and B and application C which depends on A and B. Libraries A
and B have their unit testing classes which use a setup class to load
testing resources, setup database connection, etc. This works all fine and
nice for A and B. Now I am in the process of writting unit tests for
application module C and i don't want to do copy/paste of the setup classes
of A and B but I cannot find a way to make unit test classes of C to depend
on unit test classes of A and B. 

I thought of moving some of these setup classes to main as a workaround but
then i have to add quite a few test libraries to these modules and to the
web-inf/lib folder of the final war file. Including a database jdbc driver
is not acceptable so this workaround is not the way to go.

Can anyone please help me with this setup?

Pierre
-- 
View this message in context: http://www.nabble.com/multi-module-unit-testing-tf4551612s177.html#a12989166
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message