Return-Path: Delivered-To: apmail-incubator-couchdb-dev-archive@locus.apache.org Received: (qmail 26968 invoked from network); 2 Oct 2008 16:27:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2008 16:27:33 -0000 Received: (qmail 88666 invoked by uid 500); 2 Oct 2008 16:27:32 -0000 Delivered-To: apmail-incubator-couchdb-dev-archive@incubator.apache.org Received: (qmail 88435 invoked by uid 500); 2 Oct 2008 16:27:32 -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 88424 invoked by uid 99); 2 Oct 2008 16:27:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2008 09:27:31 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.68.5.16] (HELO relay02.pair.com) (209.68.5.16) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Oct 2008 16:26:24 +0000 Received: (qmail 16939 invoked from network); 2 Oct 2008 16:25:55 -0000 Received: from 96.33.90.152 (HELO ?192.168.1.149?) (96.33.90.152) by relay02.pair.com with SMTP; 2 Oct 2008 16:25:55 -0000 X-pair-Authenticated: 96.33.90.152 Message-Id: <6ADADC57-BA30-426E-BC01-08E17F25E2C5@apache.org> From: Damien Katz To: couchdb-dev@incubator.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: command line test runner Date: Thu, 2 Oct 2008 12:25:55 -0400 References: X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Woot! This is much needed. Let me know if there is anything I can do to help get this in. -Damien On Oct 2, 2008, at 2:59 AM, Chris Anderson wrote: > Couch-heads, > > I've got the tests from couch_tests.js running from the command line. > > Here is the git-branch I'm developing in for now: > > http://github.com/jchris/couchdb/tree/jstests > > And here's a diff if you'd rather just apply it to trunk: > > http://gist.github.com/raw/14299/2d80746d7e33d8f0e48260846b81fddaa19f2bfa > > To run the tests, checkout the git branch (or download the tarball) > boostrap, configure, and make. Then run: > > src/couchdb/couchjs share/server/test.js > > from inside the trunk directory. > > If all goes well, you'll see something like this: > http://friendpaste.com/Q7sTsPPs > > I could use some help - I've documented the failures with printing to > stdout. Naturally CouchDB should be passing all the tests right now, > but there are some loose ends with the curl integration that are > causing tests to fail in the couchjs context. > > TODO to get this solid for inclusion in the build system: > > Fix curl issues (C hackers, I know you're out there): > Loading attachments causes couchjs to exit. > Curl support is missing the HEAD, COPY, and MOVE verbs. > No curl support for setting accept headers. > > DRY up the code: > Expose the load() method to couchjs, so we can load the other source > files, instead of pasting it all in one file. > Organize the code so that we can maintain just a single version of > couch_tests.js and have it run both in the browser and from the > console. Once load() is available we can probably do this by loading > couch_tests.js and couch.js, and monkey patching a couple of things. > > Cleanup / format the output. > > Integrate with the build system. > > Oh and there's a funky utf8 issue. Hopefully its easy to ask > Spidermonkey to treat its source files as utf8. > > Cheers, > Chris > > -- > Chris Anderson > http://jchris.mfdz.com