Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
button on test suite page to replicate test_suite_reports to communit…
…y couchdb

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@952326 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jchris committed Jun 7, 2010
1 parent 9e60296 commit 82e47f933ff150a59df4f2b2a68adde5e573d142
Showing 3 changed files with 52 additions and 0 deletions.
@@ -35,6 +35,14 @@
$("#toolbar button.load").click(function() {
location.reload(true);
});
$("#toolbar button.share").click(function() {
$.showDialog("dialog/_share_test_reports.html", {
submit: function(data, callback) {
$.couch.replicate("test_suite_reports", "http://couchdb.couchdb.org/test_suite_reports");
callback();
}
});
});
$("#toolbar button.add").click(function() {
location = "custom_test.html";
});
@@ -52,6 +60,7 @@ <h1>
<ul id="toolbar">
<li><button class="run">Run All</button></li>
<li><button class="load">Reload</button></li>
<li><button class="share">Share Test Reports</button></li>
<li><button class="add">Custom Test</button></li>
</ul>
<p class="help">
@@ -0,0 +1,42 @@
<!--
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->
<form action="" method="post">
<h2>Share Test Reports</h2>
<fieldset>
<p class="help">
After each test run, a results summary document is stored in
<a href="/_utils/database.html?test_suite_reports">your local
<tt>test_suite_reports</tt> database.</a> The data has no personally
identifying information, just details about the test run and your CouchDB
and browser versions. (Click the red link above to see what's stored.)
The data remains private until you click the "share" button below.
</p>
<p class="help">
Test reports are very valuable to the CouchDB community, and are easy to share.
Clicking the "share" button below triggers replication from
your local <tt>test_suite_reports</tt> database, to a database hosted by the
project.
</p>
<p class="help">
<a href="http://couchdb.couchdb.org/_utils/database.html?test_suite_reports">
Browse test reports shared by other users.</a>
Thank you for sharing!
</p>
</fieldset>
<div class="buttons">
<button type="submit">Share</button>
<button type="button" class="cancel">Cancel</button>
</div>
</form>
@@ -242,6 +242,7 @@ body.fullwidth #wrap { margin-right: 0; }
#toolbar button.load { background-image: url(../image/load.png); }
#toolbar button.run { background-image: url(../image/run.png); }
#toolbar button.save { background-image: url(../image/save.png); }
#toolbar button.share { background-image: url(../image/compact.png); }

/* Dialogs */

0 comments on commit 82e47f9

Please sign in to comment.