Return-Path: Delivered-To: apmail-maven-dev-archive@www.apache.org Received: (qmail 46153 invoked from network); 7 Aug 2008 21:12:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2008 21:12:37 -0000 Received: (qmail 46346 invoked by uid 500); 7 Aug 2008 21:12:35 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 46206 invoked by uid 500); 7 Aug 2008 21:12:34 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 46195 invoked by uid 99); 7 Aug 2008 21:12:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2008 14:12:34 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aheritier@gmail.com designates 209.85.198.240 as permitted sender) Received: from [209.85.198.240] (HELO rv-out-0708.google.com) (209.85.198.240) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2008 21:11:36 +0000 Received: by rv-out-0708.google.com with SMTP id b17so597693rvf.36 for ; Thu, 07 Aug 2008 14:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=neePJBTdwCdjSQGOpmultIzUaGRynNih54aTpohedh0=; b=eKiI01D0e31LqeZ15BrC3XFB7HhXfE3sHRd2ToqAyuqFeW33QMDVol2h/tXAb+pcH2 ag7HqndURhqf8hr24yRtn15a76vJEVSrTDCbq08X3WK6Uo+581s+4a0/Fc1C7ZiN3u8T 2C0dYwCd2Z+VedRhqSQ5yQgBsXPKF9OwUzMks= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=TPUaH/bVOJzGhMZxReWIlEml8Ze+NIz5SK5SXVytZZtjJ4yD6nzbdqa6Plvihd40hv /RfNR5xi9H/lLW9lw3QJFvyN+Woh3j/QpCJLLbw2BIhyhr+QNErPgfJqC/2g64GjgRjr aeza8Ou4Vvsu41cLIBk0mhDOk5wJWcz43rY0k= Received: by 10.141.145.11 with SMTP id x11mr929175rvn.215.1218143507249; Thu, 07 Aug 2008 14:11:47 -0700 (PDT) Received: by 10.140.140.9 with HTTP; Thu, 7 Aug 2008 14:11:47 -0700 (PDT) Message-ID: <262c6c680808071411h3cfdf357pbc05279982cd6fef@mail.gmail.com> Date: Thu, 7 Aug 2008 23:11:47 +0200 From: "Arnaud HERITIER" To: "Maven Developers List" Subject: Re: Sane plugin testing In-Reply-To: <9948cb690808071401q36cf3db5mf0563abe3c1c2e5c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10735_9121938.1218143507244" References: <591CF656-BA57-4EB6-8FC3-2E72B9FFA6AB@maven.org> <2BABBE7D2A66E04DB8A66A527D29927E404362@intrepid.infinity.nu> <9948cb690808071401q36cf3db5mf0563abe3c1c2e5c@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_10735_9121938.1218143507244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline It's faster than before and it is good, but it is always longer than in memory tests. I used shitty for the grails plugin and it just work fine. I'm interested t have groovy or another langage than bsh but it isn't important. Brett's wiki page sumarizes very fine what I would like to have for ITs : a mix of all of them. Arnaud On Thu, Aug 7, 2008 at 11:01 PM, Olivier Lamy wrote: > Hi, > Some of this improvements are in the invoker-plugin ;-). > You can configure it to run faster [1]. All plugins have been > configured as it and IMHO it's very faster. (I have to admit I don't > know shitty and don't fi it has a such feature). > > My question is : why do prefer shitty (the name ? :- ) . > It's groovy vs bsh ? > There is MINVOKER-7 which is here to support both languages. We could > have both in our its. > > -- > Olivier > > [1] > http://maven.apache.org/plugins/maven-invoker-plugin/examples/fast-use.html > > 2008/8/6 Brian E. Fox : > > I've used (and worked on) all the frameworks and also think SHITTY is > > the closest. It needs a few improvements before it can be mainstream: > > 1. It freaks out 2.1 because it circumnavigates the packaging and > > installs the plugin that was packaged by the main lifecycle. The problem > > is the data inside has a version that doesn't match what is expected > > (MSHITTY-10) > > 2. It needs local repo isolation (MSHITTY-12) > > 3. It needs to copy the tests to target before running them, just to > > avoid leaving turds in the source tree (MSHITTY-14) > > 4. It needs a way to call back to java code in /test-classes/... I don't > > want to be required to write everything in groovy...sure groovy might be > > java but if I have some existing classes that do what I need, then I > > want to use them directly. (I think this is already fixed but haven't > > tried it) > > > > > > -----Original Message----- > > From: Jason van Zyl [mailto:jason@maven.org] > > Sent: Wednesday, August 06, 2008 12:15 PM > > To: Maven Developers List > > Subject: Re: Sane plugin testing > > > > My pick for the tool is STY. I think Brian has used it, and Jason > > Dillon definitely has his opinion. > > > > The unit testing is different and the plugin-testing-harness is for > > unit testing and I'm not concerned about that in this context. If you > > look at the way Jason Dillon tests his plugins I think it's the best > > example of how to do it. It's got some groovy bits but that's fine > > with me. If I was to pick something today to move forward with it > > would be STY and I would rename that now :-) > > > > On 6-Aug-08, at 8:40 AM, Brett Porter wrote: > > > >> +1 to all below. > >> > >> All the information I could find in January is here: > >> > > http://docs.codehaus.org/display/MAVENUSER/Review+of+Plugin+Testing+Stra > > tegies > >> > >> Please use that as a starting point. There has probably been stuff > >> added to STY since. It generally seemed the best, but I would like > >> to see it get some of the verifier functionality and the ability to > >> trigger via a junit test. > >> > >> Thanks! > >> > >> - Brett > >> > >> On 07/08/2008, at 1:24 AM, Jason van Zyl wrote: > >> > >>> Hi, > >>> > >>> I think we've gotten to the point where we need to decide how we > >>> are going to test plugins. We need to pick one of the frameworks, > >>> settle on a pattern, and use that in the plugins otherwise there > >>> will be no sane way to validate a set of plugins works against a > >>> given version of Maven. What I'm thinking about here concretely is > >>> testing all the plugins that we have here against Maven 2.1 to know > >>> that we have not screwed something up so terribly that things like > >>> the deploy plugin doesn't work, or whatever. > >>> > >>> I think how this starts is that we: > >>> > >>> 1) Pick one of the tools > >>> 2) Create a touchstone project that can be expanded where necessary > >>> for any given plugin so that we have a baseline project against > >>> which to test > >>> 3) Pick a standard profile name for invoking this test > >>> > >>> This way we create a standard hook point for a larger harness to > >>> get hold off. We can check out sources and create an aggregator POM > >>> with the given profile activated to test a set of plugins. I don't > >>> know yet what the best way would be to share a touchstone project > >>> (and that is not to say we won't need different projects but we > >>> have to start with a baseline), but once we start this we can also > >>> start plugging in other things like integration testing that > >>> includes things like coverage or whatever else. > >>> > >>> I think the key in moving forward is getting 1-3 sorted out so > >>> we're not using 5 frameworks and testing plugins with N different > >>> patterns where it's impossible to hook into for larger scale > >>> testing. I think this is the only way forward to validate that a > >>> set of plugins work against a given version of Maven which is vital > >>> information to know before releasing 2.1. > >>> > >>> For integration testing I have found the SHITTY plugin (we would > >>> simply have to change that name, sorry Jason Dillon) to be the most > >>> useful and feature rich. Should be relatively simple to create a > >>> test project, and a profile name (run-its like the core ITs). Then > >>> we figure out how to share and version the test project to create a > >>> stable baseline. I chatted about this briefly in IRC with Benjamin > >>> and wanted to get the information out. I think it's vital to get > >>> this rolling if we want to roll out a 2.1-alpha-1 with some degree > >>> of confidence we have toasted a bunch of plugins due to > >>> incompatibilities in the core. > >>> > >>> Thanks, > >>> > >>> Jason > >>> > >>> ---------------------------------------------------------- > >>> Jason van Zyl > >>> Founder, Apache Maven > >>> jason at sonatype dot com > >>> ---------------------------------------------------------- > >>> > >>> What matters is not ideas, but the people who have them. Good > >>> people can fix bad ideas, but good ideas can't save bad people. > >>> > >>> -- Paul Graham > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > >>> For additional commands, e-mail: dev-help@maven.apache.org > >>> > >> > >> -- > >> Brett Porter > >> brett@apache.org > >> http://blogs.exist.com/bporter/ > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > >> For additional commands, e-mail: dev-help@maven.apache.org > >> > > > > Thanks, > > > > Jason > > > > ---------------------------------------------------------- > > Jason van Zyl > > Founder, Apache Maven > > jason at sonatype dot com > > ---------------------------------------------------------- > > > > Selfish deeds are the shortest path to self destruction. > > > > -- The Seven Samuari, Akira Kirosawa > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > > For additional commands, e-mail: dev-help@maven.apache.org > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > > For additional commands, e-mail: dev-help@maven.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > > -- .......................................................... Arnaud HERITIER .......................................................... OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .......................................................... ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ........................................................... ------=_Part_10735_9121938.1218143507244--