Return-Path: Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: (qmail 15787 invoked from network); 27 Sep 2009 03:49:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Sep 2009 03:49:04 -0000 Received: (qmail 49456 invoked by uid 500); 27 Sep 2009 03:49:04 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 49345 invoked by uid 500); 27 Sep 2009 03:49:03 -0000 Mailing-List: contact commits-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 commits@couchdb.apache.org Received: (qmail 49336 invoked by uid 99); 27 Sep 2009 03:49:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2009 03:49:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Sep 2009 03:48:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E250523888E8; Sun, 27 Sep 2009 03:48:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r819251 - /couchdb/trunk/README Date: Sun, 27 Sep 2009 03:48:31 -0000 To: commits@couchdb.apache.org From: davisp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090927034831.E250523888E8@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: davisp Date: Sun Sep 27 03:48:30 2009 New Revision: 819251 URL: http://svn.apache.org/viewvc?rev=819251&view=rev Log: Added a section on testing CouchDB with ETap. Modified: couchdb/trunk/README Modified: couchdb/trunk/README URL: http://svn.apache.org/viewvc/couchdb/trunk/README?rev=819251&r1=819250&r2=819251&view=diff ============================================================================== --- couchdb/trunk/README (original) +++ couchdb/trunk/README Sun Sep 27 03:48:30 2009 @@ -402,6 +402,35 @@ * After executing './otp_build release -a', be sure to execute Install.exe in the release/win32 directory to setup the release/win32/bin dir correctly. +Testing with Erlang +^^^^^^^^^^^^^^^^^^^ + +First, we need to get a copy of etap to run the tests. + + $ git clone git://github.com/ngerakines/etap.git + $ cd etap + $ make && sudo make install + +Now we should be able to run the etap test suite: + + $ cd /path/to/couchdb/ + $ make check + ... + prove test/etap/*.t + test/etap/001-load........................ok + test/etap/010-file-basics.................ok + ... + All tests successful. + Files=28, Tests=363, 41 wallclock secs (...) + +Tests are also available to be run individually like such: + + $ ./test/etap/001-load.t + # Current time local 2009-09-26 23:47:44 + # Using etap version "0.3.4" + 1..39 + ok 1 - Loaded: couch_batch_save + ... Cryptographic Software Notice -----------------------------