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 B936E9AFF for ; Wed, 10 Dec 2014 07:10:58 +0000 (UTC) Received: (qmail 29666 invoked by uid 500); 10 Dec 2014 07:10:57 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 29578 invoked by uid 500); 10 Dec 2014 07:10:57 -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 29567 invoked by uid 99); 10 Dec 2014 07:10:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 07:10:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of adriennolarsen@hotmail.fr designates 157.55.0.217 as permitted sender) Received: from [157.55.0.217] (HELO DUB004-OMC1S18.hotmail.com) (157.55.0.217) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 07:10:30 +0000 Received: from DUB131-DS6 ([157.55.0.237]) by DUB004-OMC1S18.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 9 Dec 2014 23:10:29 -0800 X-TMN: [ON+ZVrhMqm3zJ8W/jvvfGXmzXVN5uPP0] X-Originating-Email: [adriennolarsen@hotmail.fr] Message-ID: From: =?utf-8?Q?Adrien_Ruffi=C3=A9?= To: "'Maven Users List'" References: In-Reply-To: Subject: RE: Exclude unit test by parameter Date: Wed, 10 Dec 2014 08:14:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIOrnuf73yp813iwr5ZhDcMce87UAKzkgf5m/WYAaA= Content-Language: fr X-OriginalArrivalTime: 10 Dec 2014 07:10:29.0891 (UTC) FILETIME=[61739530:01D01448] X-Virus-Checked: Checked by ClamAV on apache.org Thank Robert,=20 If I understand correctly, I only need to launch with=20 mvn test =E2=80=93Dtest=3D!com.myapp.test1.* right ? -----Message d'origine----- De : Robert Scholte [mailto:rfscholte@apache.org]=20 Envoy=C3=A9 : mardi 9 d=C3=A9cembre 2014 19:26 =C3=80 : Maven Users List Objet : Re: Exclude unit test by parameter Please read http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#tes= t thanks, Robert ps I wonder why you thought the other would work or what/who gave you = that hint. Op Tue, 09 Dec 2014 16:01:11 +0100 schreef Adrien Ruffi=C3=A9 : > Hello all, > > > I Have several test packages, for example com.myapp.test1,=20 > com.myapp.test2, > com.myapp.test3 > > How I can exclude by parameter one package ? for example: > > > mvn test =E2=80=93DskipTests=3Dcom.myapp.test1 > > Or > > mvn test =E2=80=93Dtest.exclude=3Dcom.myapp.test2 > > > I have try both, and no success =E2=80=A6 > > > Thank and best regards. > > > Adrien Ruffi=C3=A9 --------------------------------------------------------------------- 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