Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AD0410429 for ; Tue, 14 Jan 2014 00:48:47 +0000 (UTC) Received: (qmail 37516 invoked by uid 500); 14 Jan 2014 00:46:14 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 37435 invoked by uid 500); 14 Jan 2014 00:46:05 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 37352 invoked by uid 99); 14 Jan 2014 00:45:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jan 2014 00:45:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of baerrach@gmail.com designates 209.85.128.180 as permitted sender) Received: from [209.85.128.180] (HELO mail-ve0-f180.google.com) (209.85.128.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jan 2014 00:45:36 +0000 Received: by mail-ve0-f180.google.com with SMTP id jz11so5672456veb.39 for ; Mon, 13 Jan 2014 16:45:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=23/7iXOndgani3oDgfLgK6sEhuT9D5Zi/OkZewxco84=; b=jxGxxkEACPsaCizmMnEQCFRxDl3LNg5txc8x0ZDcCfprMRftJ0LAS60p6QuAx2M38E n+SC0iMiHiQnMTaZxqQItOJjcCvrwmv1cNyShOFbCASEDflLQS2C/oPW3366nLbjLaQg dWpCeGr72qnolcQ+WQvSPFRx1yP3Tn0R2pRcqwDgWpKzfRyven2x6H7dxY6ULNlG44mI AxqB41ovFDTqP3/SC6+kgbPpyAhiVT0pCroDfBrJ6bPYVJyWOBQ4IOjw8JQHaqtdOis2 q/P0kIOHHX7rgkpiL3DcFZCUorWN9zAqwP0APyVADKRKoiyWIYL1euGXlX4IUHyCRkVa CFeQ== MIME-Version: 1.0 X-Received: by 10.58.85.133 with SMTP id h5mr19309012vez.4.1389660314222; Mon, 13 Jan 2014 16:45:14 -0800 (PST) Received: by 10.58.48.131 with HTTP; Mon, 13 Jan 2014 16:45:14 -0800 (PST) In-Reply-To: References: Date: Tue, 14 Jan 2014 11:15:14 +1030 Message-ID: Subject: Re: Running cleanup code after tests in multi-module project. From: Barrie Treloar To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 14 January 2014 10:49, Todd Chapman wrote: > Anders, > > I agree with you. Unfortunately I inherited this project and there is setup > required that is identical for each module and is expensive to set up and > tear down. It will take time to refactor the tests to be less expensive to > prepare. > > In the mean time I'm looking for ways to deal with situation I have now. It sounds like these tests are not unit tests if they need any setup/teardown of external systems. These are integration tests. It would make more sense to move these tests into one integration-test module. You then get your one setup/teardown and all the tests are together. It should be a matter of moving things around in version control rather than having to refactor the tests. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org