Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 8843 invoked from network); 14 Feb 2009 00:13:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2009 00:13:50 -0000 Received: (qmail 68799 invoked by uid 500); 14 Feb 2009 00:13:49 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 68763 invoked by uid 500); 14 Feb 2009 00:13:49 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 68752 invoked by uid 99); 14 Feb 2009 00:13:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2009 16:13:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 74.125.44.29 as permitted sender) Received: from [74.125.44.29] (HELO yx-out-2324.google.com) (74.125.44.29) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Feb 2009 00:13:41 +0000 Received: by yx-out-2324.google.com with SMTP id 31so674294yxl.5 for ; Fri, 13 Feb 2009 16:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=BOyWNx0H6VwVDmz+JQ53/BfdYeyEY0sU3rGK2Wxnyf8=; b=OuNcvyqey1kGvbmZhYOonzbw2u2MnvGgBTfT1rklPnJn13ysZRyqZPi/4mVRlA98Vz cRZoNZ3gMiKcGx2qNuYEnhV2e7aBKBplV8HVYf40i2hthk0dS75JIQ+quIxymnzDlbmY Lh0LQHf/tjdH3Vm3j8EU5sUuqIt9yjI1c+IgQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=A76ZqfHB9WFAGb0uCe1PDo3sSJA7CEjNYow7fjLUt97iZJOK/Iqm2IVzFuxr29S/Ef Rx1Fu95HynuckeuvDLD8PP5ETV+TtjsjX5TScTb6stlJquzy+v7TRlyRMblshFzjXLv8 E4aaDR/xwGSY/gfovBCMOMisr+m173TIq/f1I= MIME-Version: 1.0 Received: by 10.100.133.2 with SMTP id g2mr387446and.134.1234570400302; Fri, 13 Feb 2009 16:13:20 -0800 (PST) In-Reply-To: References: Date: Fri, 13 Feb 2009 19:13:20 -0500 Message-ID: Subject: Re: Ideas for Changes to the Test Suite From: Paul Davis To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Feb 13, 2009 at 6:55 PM, Antony Blakey wrote: > > On 14/02/2009, at 10:09 AM, Paul Davis wrote: > >> Tests should be identifiable obviously, but if you want literature in >> your code, go write AppleScript. > > Code should prioritize easy comprehensibility, especially given that there's > no separate documentation. You're obviously not a literate programming fan > :) > If the intention of the code is clear then why bother repeating the intention, why bother repeating the intention when the code is clear? See, its fucked up. If you need to point out something subtle, then use a comment. > And if you want terseness, got write APL - I did that for two years, and > it's a heap of fun. > >>> Our requirements are a working HTTP client implementation, and a >>> browser's >>> conformance to that isn't about it's Couch support. I think this should >>> be a >>> separate project. >> >> I'm confused by the the argument that we should treat in browser tests >> differently for a vote against treating in-browser tests differently. > > We shouldn't have in-browser tests. In-browser tests are about testing the > browser, which we shouldn't do in this project. Our tests should be about > Couch, on the command-line, build-farm-integratable. > > If those tests are also runnable from the browser, just for chuckles, then > fine, but that's not the canonical environment because it introduces another > variable into the mix. > The scheme I was suggesting was keeping around a small set of tests to check browser compliance with JS funcitonality that CouchDB requires. Things like making sure your XHR can do DELETE's (which is a bug in Opera we've run into). Otherwise I think we're in total agreement. > Antony Blakey > ------------- > CTO, Linkuistics Pty Ltd > Ph: 0438 840 787 > > He who would make his own liberty secure, must guard even his enemy from > repression. > -- Thomas Paine > > > HTH, Paul Davis