incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r857748 - in /websites/staging/sling/trunk/content: ./ documentation/development/sling-testing-tools.html
Date Mon, 08 Apr 2013 15:01:39 GMT
Author: buildbot
Date: Mon Apr  8 15:01:39 2013
New Revision: 857748

Log:
Staging update by buildbot for sling

Modified:
    websites/staging/sling/trunk/content/   (props changed)
    websites/staging/sling/trunk/content/documentation/development/sling-testing-tools.html

Propchange: websites/staging/sling/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Apr  8 15:01:39 2013
@@ -1 +1 @@
-1464517
+1465659

Modified: websites/staging/sling/trunk/content/documentation/development/sling-testing-tools.html
==============================================================================
--- websites/staging/sling/trunk/content/documentation/development/sling-testing-tools.html
(original)
+++ websites/staging/sling/trunk/content/documentation/development/sling-testing-tools.html
Mon Apr  8 15:01:39 2013
@@ -163,11 +163,14 @@ For tighter integration with Sling, the 
 <h2 id="slingremotetestrunner">SlingRemoteTestRunner</h2>
 <p>The <a href="http://svn.apache.org/repos/asf/sling/trunk/testing/junit/remote/src/main/java/org/apache/sling/junit/remote/testrunner/SlingRemoteTestRunner.java">SlingRemoteTestRunner</a>
is used to run tests using the <code>JUnitServlet</code> described above. In this
case, the client-side JUnit test only defines which tests to run and some optional assertions.
Checking the number of tests executed, for example, can be useful to make sure all test bundles
have been activated as expected, to avoid ignoring missing test bundles.</p>
 <p>See the <a href="https://svn.apache.org/repos/asf/sling/trunk/testing/samples/integration-tests/src/test/java/org/apache/sling/testing/samples/integrationtests/serverside/ServerSideSampleTest.java">ServerSideSampleTest</a>
class for an example.</p>
+<p>It's a good idea to check that the JUnit servlet is ready before running those tests,
see the
+<a href="https://svn.apache.org/repos/asf/sling/trunk/testing/samples/integration-tests/src/test/java/org/apache/sling/testing/samples/integrationtests/serverside/sling/SlingServerSideTestsBase.java">ServerSideTestsBase</a>
+for an example of how to do that.</p>
 <h2 id="slingremoteexecutionrule">SlingRemoteExecutionRule</h2>
 <p>The <a href="http://svn.apache.org/repos/asf/sling/trunk/testing/junit/remote/src/main/java/org/apache/sling/junit/remote/ide/SlingRemoteExecutionRule.java">SlingRemoteExecutionRule</a>
is a JUnit Rule that allows tests to be executed remotely in a Sling instance from an IDE,
assuming the test is available on both sides.</p>
 <p>The <a href="https://svn.apache.org/repos/asf/sling/trunk/testing/junit/remote/src/main/java/org/apache/sling/junit/remote/exported/ExampleRemoteTest.java">ExampleRemoteTest</a>
class demonstrates this. To run it from your IDE, set the <code>sling.remote.test.url</code>
in the IDE to the URL of the JUnitServlet, like http://localhost:8080/system/sling/junit for
example.</p>
       <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;">
-        Rev. 1464505 by bdelacretaz on Thu, 4 Apr 2013 12:42:06 +0000
+        Rev. 1465659 by bdelacretaz on Mon, 8 Apr 2013 15:01:29 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project



Mime
View raw message