incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r857266 - in /websites/staging/sling/trunk/content: ./ documentation/development/sling-testing-tools.html
Date Thu, 04 Apr 2013 12:42:12 GMT
Author: buildbot
Date: Thu Apr  4 12:42:12 2013
New Revision: 857266

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 Thu Apr  4 12:42:12 2013
@@ -1 +1 @@
-1464504
+1464505

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
Thu Apr  4 12:42:12 2013
@@ -130,8 +130,11 @@ For tighter integration with Sling, the 
 </pre></div>
 
 
-<p>And another example with a test that fails:
-    $ curl -X POST http://localhost:8080/system/sling/junit/org.apache.sling.testing.samples.failingtests.JUnit4FailingTest.json</p>
+<p>And another example with a test that fails:</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="nv">curl</span>
<span class="o">-</span><span class="n">X</span> <span class="n">POST</span>
<span class="n">http:</span><span class="sr">//</span><span class="n">localhost:8080</span><span
class="sr">/system/s</span><span class="n">ling</span><span class="sr">/junit/o</span><span
class="n">rg</span><span class="o">.</span><span class="n">apache</span><span
class="o">.</span><span class="n">sling</span><span class="o">.</span><span
class="n">testing</span><span class="o">.</span><span class="n">samples</span><span
class="o">.</span><span class="n">failingtests</span><span class="o">.</span><span
class="n">JUnit4FailingTest</span><span class="o">.</span><span class="n">json</span>
+</pre></div>
+
+
 <h1 id="scriptable-server-side-tests">Scriptable server-side tests</h1>
 <p>If the <a href="http://svn.apache.org/repos/asf/sling/trunk/testing/junit/scriptable">org.apache.sling.junit.scriptable</a>
bundle is active in a Sling system, (in addition to the <code>org.apache.sling.junit.core</code>
bundle), scriptable tests can be executed by the <code>JUnitServlet</code> according
to the following rules:</p>
 <ul>
@@ -164,7 +167,7 @@ For tighter integration with Sling, the 
 <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. 1464504 by bdelacretaz on Thu, 4 Apr 2013 12:39:04 +0000
+        Rev. 1464505 by bdelacretaz on Thu, 4 Apr 2013 12:42:06 +0000
       </div>
       <div class="trademarkFooter"> 
         Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project



Mime
View raw message