Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 94693 invoked from network); 20 May 2004 20:40:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 May 2004 20:40:56 -0000 Received: (qmail 89067 invoked by uid 500); 20 May 2004 20:40:43 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 88849 invoked by uid 500); 20 May 2004 20:40:39 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 88806 invoked by uid 98); 20 May 2004 20:40:38 -0000 Received: from vmassol@pivolis.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(195.46.220.211):. Processed in 0.084098 secs); 20 May 2004 20:40:38 -0000 X-Qmail-Scanner-Mail-From: vmassol@pivolis.com via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(195.46.220.211):. Processed in 0.084098 secs) Received: from unknown (HELO pm-mx.noos.fr) (195.46.220.211) by hermes.apache.org with SMTP; 20 May 2004 20:40:37 -0000 Received: from noos.fr (pm-mnet1.mgn.net [195.46.220.220]) by pm-mx.noos.fr (Postfix) with SMTP id ABB1626AF1 for ; Thu, 20 May 2004 22:39:59 +0200 (MEST) X-Mailbox-Line: From vmassol@pivolis.com Thu May 20 22:39:59 2004 Received: from vma (vma [195.132.245.195]) by pm-mnet1.mgn.net with ESMTP; Thu, 20 May 2004 22:39:59 (MEST) From: "Vincent Massol" To: "'Maven Users List'" Subject: RE: Maven and Integration Test Date: Thu, 20 May 2004 22:40:15 +0200 Organization: Pivolis Message-ID: <027601c43eaa$a7b64800$2502a8c0@vma> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal In-Reply-To: <85lljn6kc5.fsf@firefoot.brekke.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes, this is also what I've been advocating :-) Some references: http://www.pivolis.com/pdf/Enterprise_Builds_V1.0.pdf http://www.pivolis.com/pdf/J2EE_projects_Maven_V1.1.pdf The only variation I have from what Michal and Jeff describe below is that this other project is not a test project for me. It's the application or container project, i.e. the project that creates the application (EAR for example) or the one that create the container configuration. The reason is that integration tests, in the same fashion as the functional tests, need the application to be running (or at least a part of it). The application or container project is the place where the application can be run. If you check slide 26 of the "Enterprise Builds" presentation you'll see the description of what test to run in which build project. Thanks -Vincent > -----Original Message----- > From: Jeffrey D. Brekke [mailto:jbrekke@wi.rr.com] > Sent: 20 May 2004 20:10 > To: Maven Users List > Subject: Re: Maven and Integration Test > > > The most elagent solution I've seen to date is simply another project > as Michal has suggested. By the OP's definition, these tests span > multiple aritfacts/projects and require deployment. Why tie them > artifically to a single project and introduce the dependecy problems > that come along with that? We have done that in our legacy ant build and > it's like quicksand trying to get out of it now. Our build is brittle > and slow. A large reason why is we have done just what you propose, keep > our integration tests in the same project as our unit tests and > production code. > > I'd really give the separate project, just for integration/customer > tests, some consideration. > > >>>>> On Wed, 19 May 2004 09:45:51 -0500, Ryan Sonnek > said: > > > I was REALLY hoping to hear another solution to this problem. I'm > > running into the same thing, and would like to contain my project > > code (tests and all). I remember the cactus plugin introducing the > > concept of src/test-cactus for it's integration test code. Two > > options would be to reuse the current test plugin and change the > > source directory dynamically, or create another "test" plugin for > > integration tests that looks to something like src/test-integration. > > I think that creating a new test plugin might make the most sence in > > order to plug easier into project reports. How plausible is this? > > > Ryan > > >> -----Original Message----- From: Maczka Michal > >> [mailto:michal.maczka@imtf.ch] Sent: Wednesday, May 19, 2004 9:31 > >> AM To: 'Maven Users List' Subject: RE: Maven and Integration Test > >> > >> > >> > >> > >> > -----Original Message----- > From: Amato Massimiliano (TLAB) > > >> [mailto:Massimiliano.Amato@tradinglab.unicredit.it] > Sent: > >> Wednesday, May 19, 2004 4:17 PM > To: Maven Users List > Subject: > >> Maven and Integration Test > >> > > >> > > >> > Hello, > >> > > >> > I've a problem with my integration tests. > >> > > >> > In my system we have both unit and integration test, the > first > >> type is perfectly handled by maven that execute them, > and > >> generates a report and a clover coverage too. > >> > > >> > Now I also have integration that are test to cover not the > > >> single class but a package and functional tests that must be > run > >> on the deployed system that are junit tests aswell. > >> > > >> > All that comes to my mind is to write and additional goal > that > >> must override the test source directory that must be > lauched when > >> functional tests wants to be executed, while for > integration i > >> think using them as unit test is the best > approach even if they > >> are not accounted in the clover report > >> > > >> > Anyone else ever had a problem like that? What's the solution > > >> you implemented? > >> > > >> Just put them to another project. > >> > >> Michal > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For > >> additional commands, e-mail: users-help@maven.apache.org > >> > >> > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For > > additional commands, e-mail: users-help@maven.apache.org > > -- > ===================================================================== > Jeffrey D. Brekke jbrekke@wi.rr.com > Wisconsin, USA brekke@apache.org > ekkerbj@yahoo.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org