Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-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 6D7977AE9 for ; Thu, 20 Oct 2011 03:38:57 +0000 (UTC) Received: (qmail 15357 invoked by uid 500); 20 Oct 2011 03:38:56 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 15328 invoked by uid 500); 20 Oct 2011 03:38:56 -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 15320 invoked by uid 99); 20 Oct 2011 03:38:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 03:38:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.86.168.182] (HELO mxout-07.mxes.net) (216.86.168.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 03:38:44 +0000 Received: from [192.168.106.100] (unknown [99.127.42.121]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 53F4D22E25A for ; Wed, 19 Oct 2011 23:38:23 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: futon tests (Was: Re: [VOTE] Apache CouchDB 1.1.1 Release) From: "J. Lee Coltrane" In-Reply-To: Date: Wed, 19 Oct 2011 23:38:26 -0400 Content-Transfer-Encoding: 7bit Message-Id: <00EFB465-11C2-4023-ACEA-F80D3E3E5CB2@projectmastermind.com> References: To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1084) > For what it's worth, a CLI based test system is what I was imagining > as well. Take Futon out of the mix and test CouchDB. IMO, If CouchDB is intended to be a server that can be accessed from the browser directly, then there should continue to be some kind of browser-based test suite that would serve to confirm this capability. I have been looking closely at the Futon tests in 1.1.0 for the last several days, with the idea that I might begin to clean them up a bit as time permits. I have found that, while some of these test failures are totally bogus, *some* of them actually do stem from real issues -- minor incompatibilities between CouchDB's http interface, and the internal mechanisms of modern browsers (XHR, caching, etc). These are problems that we're not going to catch with a stateless, cache-less http client running on the CLI. (I can provide examples) These issues have the potential to cause real problems for developers of real browser-based apps "in the wild". That means, there's valuable info to be gathered from the browser tests, Iff we can clean them up, and make them behave consistently; so that when they fail or succeed, we can actually trust the results. After digging around a good bit, I can see no reason why the existing tests couldn't be cleaned up and made to work correctly in all current versions of major browsers. I also see no reason why the same tests couldn't be used successfully from the CLI and `make check` as well. I do see significant benefits to using the same javascript test code in all environments we test. -Lee (irc: coltr)