From easyant-dev-return-293-apmail-incubator-easyant-dev-archive=incubator.apache.org@incubator.apache.org Thu Jul 26 13:35:41 2012 Return-Path: X-Original-To: apmail-incubator-easyant-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-easyant-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 7F8A99614 for ; Thu, 26 Jul 2012 13:35:41 +0000 (UTC) Received: (qmail 38251 invoked by uid 500); 26 Jul 2012 13:27:08 -0000 Delivered-To: apmail-incubator-easyant-dev-archive@incubator.apache.org Received: (qmail 78349 invoked by uid 500); 26 Jul 2012 13:25:36 -0000 Mailing-List: contact easyant-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: easyant-dev@incubator.apache.org Delivered-To: mailing list easyant-dev@incubator.apache.org Received: (qmail 72308 invoked by uid 99); 26 Jul 2012 12:52:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 12:52:54 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_HELO_PASS,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of nicolas.lalevee@hibnet.org does not designate 216.86.168.183 as permitted sender) Received: from [216.86.168.183] (HELO mxout-08.mxes.net) (216.86.168.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 12:52:48 +0000 Received: from [10.0.0.39] (unknown [213.190.87.194]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id B58F050A6A for ; Thu, 26 Jul 2012 08:52:27 -0400 (EDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: Easyant Plugin's test From: =?iso-8859-1?Q?Nicolas_Lalev=E9e?= In-Reply-To: Date: Thu, 26 Jul 2012 14:52:27 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: easyant-dev@incubator.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Good job Jean-Louis ! Nicolas Le 25 juil. 2012 =E0 21:14, Jean-Louis Boudart a =E9crit : > All target of checkstyle plugin are now tested using antunit :). > Our test : > - configure easyant-ivy-instance (using a new ant task) > - import the local plugin (checkstyle in our example) all magic = property > and variables are set (like the dynamic classpath containing plugin > dependencies) > - uses antunit to check if targets do their jobs. >=20 > The major difficulty was to find an easy way to configure easyant and = to > load the local plugin (the one you want to test). >=20 > You can check at checkstyle's plugin sources to see how to do it. = I'll > update the documentation. >=20 > Now that major job is done i'll start implementing test for others = plugins. >=20 > Cheers, > 2012/7/24 Jean-Louis Boudart >=20 >> Dear EasyAnters, >>=20 >> I've just updated commited a new ant task to easyant plugin writers = named >> "import-test-module". This task is designed to simplify test of your >> plugins. >> If you want to look what it looks like you could just check the = checkstyle >> plugin's test [1]. >>=20 >> I'm planning to implements autunit test for all plugins before the >> release, help would be really appreciated ;). >>=20 >> [1] >> = https://github.com/easyant/checkstyle-plugin/blob/master/src/test/antunit/= checkstyle-test.xml >>=20 >>=20 >> -- >> Jean Louis Boudart >> Independent consultant >> Apache EasyAnt commiter http://incubator.apache.org/easyant/ >>=20 >=20 >=20 >=20 > --=20 > Jean Louis Boudart > Independent consultant > Apache EasyAnt commiter http://incubator.apache.org/easyant/