I use the same directory structure (thank to Vincent Massol for its doc).

Why don't you use maven multiproject facilities ?
Declare modules dependancies with snapshot version and rebuild all your 
project.
maven clean multiproject:install

All your test will be execute. All the moduleX test stand for your 
integration test. Your can define Acceptance or functionnal test in your applications 
module.

Nicolas






"Stephane Nicoll" <[EMAIL PROTECTED]>
19/03/2004 09:35
Veuillez r�pondre � "Cactus Users List"

 
        Pour :  <[EMAIL PROTECTED]>
        cc : 
        Objet : Cactus integration test with a production's EAR


Guys,

We are using maven to manage our application. It's something like

Project
   applications
   modules
     module1
     module2
     ....

Each module is a maven project and generate an EJB-JAR or a WAR. Each 
module
has its own cactus tests and rely on fixed version of other modules to 
work.
At the end, an EAR is build (applications dir is also a maven project and
manages this) with a version of each modules.

Our problem now is that we would like to:

- Run ALL tests of ALL modules on the generated EAR (basically module1 
needs
module2 and3 for instance while module4 needs 1and3, etc but at the end 
all
modules fit together in a single EAR). It means gather and compile the 
tests
of all modules in some separate project
- Run some other tests.

My idea is to create a new maven project "integration" containing 
integration
tests (the "run some other tests" part). Then I have somehow to gather all
cactus's test source files from all modules and compile them in a common
place + build a WAR.

If this works I should somehow be able to depend on some EAR (since it's
deployed in our local repo), copy it to my application server, start it, 
copy
the war and launch the tests.

Does it seem feasible to you?

If someone else is insterested or  find this relevant, maybe I can provide 
a
patch.

Regards,

St�phane
 

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





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

Reply via email to