summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-09-27 03:48:30 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-09-27 03:48:30 +0000
commitcfe0ba5be8b22ce4f1eb286eac6212bc34d56615 (patch)
treeacbaa1c24c2a9fbf1ce73739ab12b73756751cc4 /README
parenteefb0b2d6ed65a9f8e17931e69eef56d1c92430e (diff)
Added a section on testing CouchDB with ETap.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819251 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'README')
-rw-r--r--README29
1 files changed, 29 insertions, 0 deletions
diff --git a/README b/README
index eb3aef0d..3d81bfaf 100644
--- a/README
+++ b/README
@@ -402,6 +402,35 @@ Building erlang:
* 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
-----------------------------