Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90F509FD7 for ; Sat, 24 Dec 2011 17:23:33 +0000 (UTC) Received: (qmail 13712 invoked by uid 500); 24 Dec 2011 17:23:33 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 13683 invoked by uid 500); 24 Dec 2011 17:23:33 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 13675 invoked by uid 99); 24 Dec 2011 17:23:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Dec 2011 17:23:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dan.j.allen@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Dec 2011 17:23:27 +0000 Received: by yenm12 with SMTP id m12so5854510yen.6 for ; Sat, 24 Dec 2011 09:23:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=TXk4Afhy5VL2qUfhln7eFGBRcykXbtZnevTSgozFXDw=; b=ZgcEJDwrhjPe2LrgvPYqWc4sFn04dphZ/Ww5jYzHTCWuzTD3HL79AtsPxLuX3nctES zDDBHWTVZZDIBeDub/bKRIbJYwR9Px/6zi7WDyQ4s6FPFFtZDxwUIQ1SXtkpAwMX4iLG iTikSElvxi4H+p19GkwDX2r+cJOku0vFgWqbY= Received: by 10.236.77.170 with SMTP id d30mr9122337yhe.67.1324747386233; Sat, 24 Dec 2011 09:23:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.146.93.19 with HTTP; Sat, 24 Dec 2011 09:22:35 -0800 (PST) In-Reply-To: <6B97EF31-4254-4FE7-B86F-FEDF40066C33@gmail.com> References: <1324633148.251.YahooMailNeo@web27804.mail.ukl.yahoo.com> <1324684798.55203.YahooMailNeo@web27802.mail.ukl.yahoo.com> <6B97EF31-4254-4FE7-B86F-FEDF40066C33@gmail.com> From: Dan Allen Date: Sat, 24 Dec 2011 12:22:35 -0500 Message-ID: Subject: Re: basic decisions: test setup To: deltaspike-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf300514b45fa24004b4d9c969 X-Virus-Checked: Checked by ClamAV on apache.org --20cf300514b45fa24004b4d9c969 Content-Type: text/plain; charset=UTF-8 On Sat, Dec 24, 2011 at 11:56, Jason Porter wrote: > I just some digging, I think we'll have to stick with our original idea of > separating via package because JUnit won't accept multiple @RunWith > annotations, and oddly enough there is no combined runner you can use. > > Categories requires @RunWith(Categories.class) and we're already using > Arquillian so that won't fly. > I think you missed the tip that Aslak raised. You don't need to use @RunWith(Categories.class) to do category-based runs. Surefire now supports the creation of suites in the plugin configuration. If you do want to use @RunWith(Categories.class), then you put in on a test suite (an otherwise empty class). Then your individual tests with @RunWith(Arquillian.class) still work. Here's the syntax for the suite class: http://stackoverflow.com/questions/2176570/how-to-run-all-tests-belonging-to-a-certain-category-in-junit-4 The point of using the Surefire feature is to avoid the need of having to create test suites in Java. -Dan -- Dan Allen Principal Software Engineer, Red Hat | Author of Seam in Action Registered Linux User #231597 http://google.com/profiles/dan.j.allen http://mojavelinux.com http://mojavelinux.com/seaminaction --20cf300514b45fa24004b4d9c969--