From f7e36955a250f759fbe172bb2672a44ec8c167fd Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 14 Oct 2009 06:32:57 +0000 Subject: save a test report git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825017 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_test_runner.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 = []; -- cgit v1.2.3