From 5311b7509c103ac951bd011a50315daa358d8a4f Mon Sep 17 00:00:00 2001 From: JanLehnardt Date: Sun, 16 Sep 2007 21:35:59 +0000 Subject: [PATCH] be more verbose git-svn-id: http://couchdb.googlecode.com/svn/trunk@193 efc57d8c-411c-0410-91b3-cfdf4dd2bc77 --- dist/common/ht_utils/couch_tests.js | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/dist/common/ht_utils/couch_tests.js b/dist/common/ht_utils/couch_tests.js index 27f96c8..0f412b3 100644 --- a/dist/common/ht_utils/couch_tests.js +++ b/dist/common/ht_utils/couch_tests.js @@ -1,8 +1,6 @@ - - - // Do some basic tests. var basic_tests = function() { + print("Testing basic functionality"); var db = new CouchDb("test_suite_db"); // Reset the database @@ -93,10 +91,12 @@ var basic_tests = function() { // 1 less document should now be in the results. T(results.total_rows == 2); T(db.info().doc_count == 5); + print("Done"); } // Do some edit conflict detection tests var conflict_tests = function() { + print("Testing conflicts"); var db = new CouchDb("test_suite_db"); db.deleteDb(); db.createDb(); @@ -137,11 +137,12 @@ var conflict_tests = function() { T(db.save(doc2).ok); // we can save a new document over a deletion without // knowing the deletion rev. + print("Done"); } // test saving a semi-large quanitity of documents and do some view queries. var lots_of_docs_tests = function() { - + print("Testing lots of docs"); // keep number lowish for now to keep tests fasts. Crank up manually to // to really test. var numDocsToCreate = 500; @@ -173,11 +174,12 @@ var lots_of_docs_tests = function() { for(var i=0; iTests passed!"); -- 2.11.4.GIT