Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 29062 invoked from network); 25 Sep 2007 22:32:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2007 22:32:13 -0000 Received: (qmail 32968 invoked by uid 500); 25 Sep 2007 22:32:04 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 32925 invoked by uid 500); 25 Sep 2007 22:32:03 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 32914 invoked by uid 99); 25 Sep 2007 22:32:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 15:32:03 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 66.249.82.237 as permitted sender) Received: from [66.249.82.237] (HELO wx-out-0506.google.com) (66.249.82.237) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2007 22:32:02 +0000 Received: by wx-out-0506.google.com with SMTP id s8so1458745wxc for ; Tue, 25 Sep 2007 15:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=RgNGGnP1+phRuFsXMYjXLojIsSi3cPH8UeXjwK/41UY=; b=Ha30VumNCO/Q0wABIHtYPKX4+YiPu5r1Iz8ABgjZda9BaXPwN+0dWziPgLrnhQW5BmcpgGiuj8YqbM8F1yE6msA2nlEDZ0THpi5s6hBPP4kz7HVazXomIrCW1YfZfAt3b5BXs/HfQzo3y9zliIRyriQxA+pBlzeP2W3Z4Yx8pMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LgWOk5XgxYyg1JHFqjDS3lOuVk0qcjRuPSVpSlM0N86MzsSjhCsbJ7IveeyAli9ds0PNTMpsN2dhgBi6pzgGIGyVPPq4KPDUUaGtoR8iFM/XrcFQt6UVOWn3JtSy1Ej2rYGvS97h9Ht1/UpmFxbCVi4WRWerMrqNQ/zK1Z5zuco= Received: by 10.90.51.17 with SMTP id y17mr6983568agy.1190759501839; Tue, 25 Sep 2007 15:31:41 -0700 (PDT) Received: by 10.90.65.1 with HTTP; Tue, 25 Sep 2007 15:31:41 -0700 (PDT) Message-ID: Date: Wed, 26 Sep 2007 00:31:41 +0200 From: "Emmanuel Lecharny" Reply-To: elecharny@iktek.com To: "Chris Custine" Subject: Re: Using JUnit 4 in tests Cc: "Apache Directory Developers List" In-Reply-To: <43b026c70709251513nd0fe87n85bf1b084dd405b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43b026c70709251513nd0fe87n85bf1b084dd405b4@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Too late, I already deployed the tests in the train when we were back to K= =F6ln :] On 9/26/07, Chris Custine wrote: > Can you commit this yesterday? Last Friday would be even better.... > Thanks. :-D > > Chris > > > On 9/25/07, Emmanuel Lecharny < elecharny@gmail.com> wrote: > > Hi ! > > > > I have done some experiment in trunks with JUnit4. The results are > > impressive ! For SearchTest, I went from 40 seconds down to 4 seconds. > > > > The basic idea is to setup the server only once per class, instead of > > set up and shutdown the server for each test. > > > > The price to pay is not free though : the data must be organized in a > > way that the initial import of entry covers all the test. These data > > will be imported before each tests, we can also think about deleting > > them after each test. > > > > Here are the three classes implemented as a example. > > > > > directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/s= erver/FastDelITest.java > > > directory/apacheds/trunk/server-unit/src/main/java/org/apache/directory/s= erver/unit/AbstractServerFastTest.java > > > directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/s= erver/FastSearchTest.java > > > > Just tell me if you need any more explanations. > > > > I would like to switch the most costly unit tests using this technic > > as quickly as possible, to reduce the global regrssion tests cost > > (more than 20 minutes on my laptop). I really think we can go down to > > 4 or 5 minutes. > > The targets are core-unit and server-unit. > > > > Thanks ! > > > > PS: currently, fast and slow tests are overlapping. I will wait a bit > > before commenting slow tests. > > > > -- > > Regards, > > Cordialement, > > Emmanuel L=E9charny > > www.iktek.com > > > > --=20 Regards, Cordialement, Emmanuel L=E9charny www.iktek.com