summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-10-14 06:32:57 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-10-14 06:32:57 +0000
commitf7e36955a250f759fbe172bb2672a44ec8c167fd (patch)
tree0cef5b9eb8f70f014def9d170a307480ddb6cd05 /share
parent863c4e046608a6e2ba9544db3f82de63a714010c (diff)
save a test report
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825017 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/script/couch_test_runner.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/www/script/couch_test_runner.js b/share/www/script/couch_test_runner.js
index aeb1de59..431c0aa7 100644
--- a/share/www/script/couch_test_runner.js
+++ b/share/www/script/couch_test_runner.js
@@ -153,6 +153,21 @@ function updateTestsFooter() {
}
}
+// 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 = [];