From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11051 invoked by alias); 8 Mar 2006 19:07:38 -0000 Received: (qmail 11039 invoked by uid 22791); 8 Mar 2006 19:07:38 -0000 X-Spam-Check-By: sourceware.org Received: from p54A55E34.dip.t-dialin.net (HELO localhost) (84.165.94.52) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Mar 2006 19:07:34 +0000 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.60) (envelope-from ) id 1FH4wQ-0003lD-MA; Wed, 08 Mar 2006 21:07:26 +0100 Subject: Re: Running Mauve tests with JUnit From: Dalibor Topic To: David Gilbert Cc: mauve-discuss@sourceware.org, mauve-patches In-Reply-To: <440EDA60.10802@object-refinery.com> References: <440C6BB8.90002@object-refinery.com> <440EB4B7.1020709@object-refinery.com> <20060308120721.GA7569@pogo.kaffe.org> <440EDA60.10802@object-refinery.com> Content-Type: text/plain Date: Wed, 08 Mar 2006 19:07:00 -0000 Message-Id: <1141848446.4929.16.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact mauve-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00056.txt.bz2 On Wed, 2006-03-08 at 13:21 +0000, David Gilbert wrote: > Hi Dalibor, > > I had meant to keep this on the Mauve lists, but I'll reply to the > Classpath list also... > Sorry about the cross-posting :/ I've taken the classpath list out again. > I hadn't seen Graydon's bridge class, thanks for the link (and I should > do more research next time). Looking over it, it has the advantage that > it doesn't require any existing Mauve testlets to be modified (and we > have a lot of testlets), but the disadvantage that it doesn't buy you > much in terms of integration with IDEs (you still have to generate the > test list ['classes'] file, for instance, which is the major stumbling > block that people seem to have when trying to run Mauve). OK, thanks for the explanation. I wasn't familiar with Graydon's code either, just remembered it was sitting in my mail box. > By modifying the Mauve testlets in the way that I proposed, you can (for > example) run a single test in Eclipse just by selecting the source file > and clicking 'Run as --> JUnit test'. I figured that was the sort of > thing people were expecting. That sounds very cool. Would it be possible to make that work without having to modify the existing tests, by (just trowing random ideas here) using a proxy to delegate to the junit Test runner, and having Testlet implement both the junit.Test interface and the Testlet interface? (I assume that a Junit test is recognized by an IDE by looking whether a class implements the junit.Test interface? Or do IDEs look for a class extending TestCase/TestSuite? I don't use IDEs much, so I hope the questions are not too stupid.) > Agreed. I didn't have much trouble getting the tests to compile against > the freenet code (a basic GPLed implementation of the JUnit API for > those that don't know what it is) but didn't get any meaningful output > from running the tests against it yet. I don't think that will be too > hard to resolve. Great, thanks for looking at that code. Sounds like it should be good enough for the basic needs. cheers, dalibor topic