Return-Path: Delivered-To: apmail-incubator-cxf-dev-archive@locus.apache.org Received: (qmail 20370 invoked from network); 14 Dec 2007 23:52:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Dec 2007 23:52:41 -0000 Received: (qmail 13222 invoked by uid 500); 14 Dec 2007 23:52:29 -0000 Delivered-To: apmail-incubator-cxf-dev-archive@incubator.apache.org Received: (qmail 13189 invoked by uid 500); 14 Dec 2007 23:52:29 -0000 Mailing-List: contact cxf-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-dev@incubator.apache.org Delivered-To: mailing list cxf-dev@incubator.apache.org Received: (qmail 13180 invoked by uid 99); 14 Dec 2007 23:52:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 15:52:29 -0800 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DATE_IN_PAST_06_12,FM_FAKE_HELO_VERIZON,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [206.46.252.46] (HELO vms046pub.verizon.net) (206.46.252.46) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Dec 2007 23:52:18 +0000 Received: from [192.168.1.3] ([72.93.84.188]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JT2009VHCY7UCOB@vms046.mailsrvcs.net> for cxf-dev@incubator.apache.org; Fri, 14 Dec 2007 17:51:43 -0600 (CST) Date: Fri, 14 Dec 2007 12:11:39 -0500 From: Fred Dushin Subject: Re: [IMPASSIONED PLEA] Naming and structuring test materials In-reply-to: <1197648078.6693.20.camel@bim-1330.basistech.net> To: cxf-dev@incubator.apache.org Message-id: <49740FEC-A3E3-4B8A-903B-0AC34FCAB14C@dushin.net> MIME-version: 1.0 (Apple Message framework v752.3) X-Mailer: Apple Mail (2.752.3) Content-type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-transfer-encoding: 7bit References: <1197648078.6693.20.camel@bim-1330.basistech.net> X-Virus-Checked: Checked by ClamAV on apache.org On Dec 14, 2007, at 11:01 AM, Benson Margulies wrote: > We have about 10 copies of the hello world schema floating around the > tree. > > The idea is that wsdl-first and code-first test schemas and > implementation should live in testutils. The problem, from my > jaundiced > point of view, is that we have been dumping things into there without > enough care in picking names. I agree. > > For example, someone put a copy of the hello_world 'greeter' schema > into > testutils, but modified it to use the XML binding. > > In my opinion, it should have been renamed and renamespaced to in the > process. The current state is unproductive in two ways. > > First, new people looking for a test case schema are prone to do > what I > did, which is see it, try to use it, and then belatedly run into > the XML > binding specification. And then have to back up and turn around. > > Second, it turns the testutils into a confusing arena in which no one > really knows what we have for inventory. I understand why the testutils stuff is there, but I don't like it. The idea is to shorten build times, by putting a common set of functionality in a JAR, and re-use to your heart's content. My problem with that is re-use doesn't always work, so you get what you observe -- lots of test-specific functionality in testutils. (Look at hello_world_secure.wsdl, for an example). What would be better (IMO) would be to possible put base schema and logical WSDL types in testutils, and then have the actual tests import these schema and WSDL from system tests, but only if it makes sense. You'd still "pay" for code generation during the build, but that's life in the fast lane. The current approach leads to spaghetti. > > It looks to me as if another process is to take some example we get > in a > test case, and check it in, 'as is'. I can see the reason to do this: > ultimately, the user's test is the regression test. However, there are > all kinds of opportunities for unexpected classpath and namespace > conflicts this way. I wonder if we should 'pom' these regressions as > individual sub-projects of systests so that they ran in comparative > isolation from each other. > > While I'm inventing work with no one to do it, I'd propose that: > > a) all the services used in the demos should be in testutils, > verbatim, > and we should routinely run unit tests against those services. Wouldn't there me a maintenance issue there? I'd rather see the sample programs run as part of a build. > > b) Some cleanup of the existing inventory would be helpful. I'll do at > least a little bit. That would be good. I'd offer to help with the security stuff, but I'm flat out right now. > > c) Some wiki-writing explaining the inventory would be helpful. RoTR would be good in this area. > > --benson > > >