Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 87815 invoked from network); 9 Oct 2008 22:13:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2008 22:13:54 -0000 Received: (qmail 4191 invoked by uid 500); 9 Oct 2008 22:13:53 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 4140 invoked by uid 500); 9 Oct 2008 22:13:52 -0000 Mailing-List: contact couchdb-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-dev@incubator.apache.org Delivered-To: mailing list couchdb-dev@incubator.apache.org Received: (qmail 4128 invoked by uid 99); 9 Oct 2008 22:13:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 15:13:52 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_SECURITYSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 66.249.82.231 as permitted sender) Received: from [66.249.82.231] (HELO wx-out-0506.google.com) (66.249.82.231) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 22:12:47 +0000 Received: by wx-out-0506.google.com with SMTP id s13so125749wxc.21 for ; Thu, 09 Oct 2008 15:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=qmMvVclDP/tM6jt2b2DortPdGkjIm/HN/LhksDIX2co=; b=jYlw9nTng4BzhVDxTPPomy7OOE5c2j9CaSTAI4ftY94AJ67WjKdhYTEM00xFdegyq0 dnJgpnT396mZ2CiSmMgf6OG+AKykzgBptu3pxMGe7MVmVC8o+g+8KeiMGbnSCc7qBtbg eLFEZ5doIewemJNRvEL78EF9XgOCcNFXFzTFc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=YnFFJoFRINuF4jPqZmyTg8RpVzkcft7uIs3efFSFp8KISV6PJsx9uIhWYDLzXLCRV/ rPhkQxyauP+NJ1ap4Im7kPQbTtImPXcd3y0VyPwzci1QIBVxM+0Ws15rQl8O6GGqhqRy lUZtVeNlPVky0N4zoDNg6VigFrpx0Juwbs7dU= Received: by 10.142.44.13 with SMTP id r13mr347974wfr.344.1223590402888; Thu, 09 Oct 2008 15:13:22 -0700 (PDT) Received: by 10.142.49.15 with HTTP; Thu, 9 Oct 2008 15:13:22 -0700 (PDT) Message-ID: Date: Thu, 9 Oct 2008 15:13:22 -0700 From: "Chris Anderson" Sender: jchris@gmail.com To: couchdb-dev@incubator.apache.org Subject: Re: command line test runner In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 4ef29fcbb7e8dd22 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Oct 1, 2008 at 11:59 PM, Chris Anderson wrote: > Couch-heads, > > I've got the tests from couch_tests.js running from the command line. I've commited this to trunk as revision 703276. To run the tests, run `make check` while you have a CouchDB instance available at http://127.0.0.1:5984 - ideally make check should be able bootstrap a CouchDB. I'm not sure the best way to manage this, so I've left it out of scope. Because couchjs can take a script on stdin, I'm able to merge the couch.js, couch_tests.js and test.js (the test runner which monkeypatches http support into couchjs) using cat, so the copy of the tests run by this command is the same as that run in the browser. > > Oh and there's a funky utf8 issue. Hopefully its easy to ask > Spidermonkey to treat its source files as utf8. > This is still an issue with utf8. I'm just skipping that test right now because I don't see a fix that doesn't involve deep Spidermonkey magic. BTW - see test.js for JavaScript code that makes HTTP GET, HEAD, POST, PUT, DELETE, COPY, and MOVE available to Javascripts. I already have a few other ideas about what this could be good for. Making HTTP requests in the view runner (main.js) is what we call a *bad idea* so don't even think about it. Thanks to Michael Gottesman (gottesmm) for the initial work on libcurl integration. -- Chris Anderson http://jchris.mfdz.com