You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2009/09/27 05:48:31 UTC
svn commit: r819251 - /couchdb/trunk/README
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
-----------------------------