Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 014079E9D for ; Tue, 27 Sep 2011 13:48:22 +0000 (UTC) Received: (qmail 80753 invoked by uid 500); 27 Sep 2011 13:48:21 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 80716 invoked by uid 500); 27 Sep 2011 13:48:21 -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 80709 invoked by uid 99); 27 Sep 2011 13:48:21 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 13:48:21 +0000 Received: from localhost (HELO emmanuel-lecharnys-MacBook-Pro.local) (127.0.0.1) (smtp-auth username elecharny, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2011 13:48:21 +0000 Message-ID: <4E81D423.4050907@apache.org> Date: Tue, 27 Sep 2011 15:48:19 +0200 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= Reply-To: elecharny@apache.org Organization: The Apache Software Foundation User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Reorganizing tests subproject proposal References: <4E81C2F7.7010705@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 9/27/11 3:10 PM, Kiran Ayyagari wrote: > On Tue, Sep 27, 2011 at 8:35 AM, Emmanuel Lecharny wrote: >> Hi guys, >> >> yesterday, I tried to cut a small external project, demonstrating how to use >> our jars to test LDAP. It was not so easy, as I had to include many jars in >> order to have the code working. >> > yeah, had experienced this before (was used to solve it the hard way > by gathering the various pom file contents together to make this work) > glad to see this being solved >> Lately, we modified the apacheds-all pom.xml (not yet committed) to generate >> a unique jar with Pierre-Arnaud (the shade plugin was misconfigured) and >> now, I'm able to run a standalone test including only those jars : >> >> - junit >> - apacheds-core-annotations >> - apacheds-core-integ >> - apacheds-server-annotations >> - apacheds-server-integ >> - apacheds-test-framework >> - apacheds-all >> >> This is pretty convenient to be able to have all the jars gathered in >> apacheds-all, but we need to go a bit farther : the apacheds-test-framework >> should also gather the junit, apacheds-core-annotations, >> apacheds-core-integ, apacheds-server-annotations and apacheds-server-integ >> jars in one single jar. It would make possible to have two jars only to >> include when writing a standalone test application. >> >> One other option would be to create two apacheds-all jars : >> - the one we currently produce, with all the needed dependencies except the >> test ones >> - and a apacheds-test-all which includes everything. >> >> What would be the best solution ? >> > I would sugegst we don't include the test modules i,e core-integ and > server-integ > ideally apacheds-all should contain the testframework, core and server > annotation modules > (cause they are not tests by themselves) so having apacheds-all jar > should let us write and run a > test. I would rather not include anything related to tests (ie xxx-integ nor test-framework) in apacheds-all, as it's really intended to be used for embedding the server. > > is there any special reason to include the tests? I'd like to provide a simple jar for people who want to write tests for a LDAP server. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com