couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r825017 - /couchdb/trunk/share/www/script/couch_test_runner.js
Date Wed, 14 Oct 2009 06:32:57 GMT
Author: jchris
Date: Wed Oct 14 06:32:57 2009
New Revision: 825017

URL: http://svn.apache.org/viewvc?rev=825017&view=rev
Log:
save a test report

Modified:
    couchdb/trunk/share/www/script/couch_test_runner.js

Modified: couchdb/trunk/share/www/script/couch_test_runner.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch_test_runner.js?rev=825017&r1=825016&r2=825017&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch_test_runner.js (original)
+++ couchdb/trunk/share/www/script/couch_test_runner.js Wed Oct 14 06:32:57 2009
@@ -153,6 +153,21 @@
   }
 }
 
+// make report and save to local db
+// display how many reports need replicating to the mothership
+// have button to replicate them
+
+function saveTestReport() {
+  var subject = $("#tests tbody.footer td").text();
+  var report = {
+    "failures" : failureList
+  }
+  var db = $.couch.db("test_suite_reports");
+  var saveReport = function() {
+    db.saveDoc(report);        
+  };
+  db.create({error: saveReport, success: saveReport});
+};
 
 function testReport() {
   var report = [];



Mime
View raw message