Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 20347 invoked from network); 25 May 2005 00:04:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 May 2005 00:04:44 -0000 Received: (qmail 74292 invoked by uid 500); 25 May 2005 00:04:44 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 74277 invoked by uid 99); 25 May 2005 00:04:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from nwkea-mail-1.sun.com (HELO nwkea-mail-1.sun.com) (192.18.42.13) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 24 May 2005 17:04:42 -0700 Received: from phys-mpk-1 ([129.146.11.81]) by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id j4P04fME023424 for ; Tue, 24 May 2005 17:04:41 -0700 (PDT) Received: from conversion-daemon.mpk-mail1.sfbay.sun.com by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IH000M01QQ4QV@mpk-mail1.sfbay.sun.com> (original mail from Michelle.Caisse@Sun.COM) for jdo-dev@db.apache.org; Tue, 24 May 2005 17:04:41 -0700 (PDT) Received: from [129.150.27.57] (vpn-129-150-27-57.SFBay.Sun.COM [129.150.27.57]) by mpk-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IH0005V3QVLG4@mpk-mail1.sfbay.sun.com> for jdo-dev@db.apache.org; Tue, 24 May 2005 17:04:33 -0700 (PDT) Date: Tue, 24 May 2005 17:09:07 -0700 From: Michelle Caisse Subject: Re: JDO TCK TestRunner ideas In-reply-to: <421D054D.4030005@spree.de> To: jdo-dev@db.apache.org Message-id: <4293C223.9090509@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 References: <421D054D.4030005@spree.de> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Michael, I am reviewing the ideas we discussed for controlling test execution for multiple configurations. One goal we have is that all allowed combinations of tests, mapping files, test data, identity settings, ... can be run with a single maven command. If I understand correctly, you pictured that the user would select a configuration file by setting it in project.properties and only that one configuration (which might include many tests, mappings, etc.) would be run by maven. Is this correct? Or do you see a way for maven to run a set of configuration files on one invocation? -- Michelle Michael Bouschen wrote: > Hi, > > I had an action item to investigate how to extend the JDO TCK > TestRunner such that the same test class can be run in multiple > configurations. These are possible configuration parameters: > - identity setting (application or datastore identity) > - security on/off > - mapping files > - test data > - list of test classes to be executed > > We started with the idea the test runner reads parameters from a > configuration file, e.g. an xml description. Some of the configuration > parameters are important for the build process and I see issues with > maven getting the info from the configuration file. > > I would like to propose to use properties files for the configuration > parameters such that maven can directly read and use these > configuration properties. > > I propose to create a subdirectory called conf in the tck subproject. > It contains configuration files, one test configuration per file. The > file has the standard properties format similar to the > project.properties file. The file defines a set of standard jdo tck > properties (the property names are just a proposal and subject to > change): > jdo.tck.identitytype = application/datastore > jdo.tck.security = on/off > jdo.tck.secutity.policyfile = > jdo.tck.mapping = > jdo.tck.testdata = > jdo.tck.testclasses = > > The project.properties file of the tck subproject defines a property > called jdo.tck.configuration pointing to one of the configuration files: > jdo.tck.configuration = ${basedir}/conf/alltests.properties > The user can specify the configuration to use by editing the file > project.properties or by setting a system property: > maven -Djdo.tck.configuration=conf/test.properties runtck > > The maven goal to run the tck for a specific configuration reads the > configuration properties from the file as specified by the property > jdo.tck.configuration: > > This allows to adapt the classpath to include the enhanced pc classes > based on the identitytype. Any configuration setting needed by the > TestRunner is passed as system property (e.g. the security policy > file) or as argument of the main method (e.g. the list of test classes > to be executed). > > Does this sound reasonable? Any feedback is appreciated. > > Regards Michael