incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Sling Website > Sling Testing Tools
Date Wed, 23 Mar 2011 10:25:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=SLINGxSITE&amp;forWysiwyg=true"
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="">Sling
Testing Tools</a></h2>
    <h4>Page  <b>added</b> by             <a href="">Bertrand
    <div class="notificationGreySide">
         <p>Sling provides a number of testing tools that enable the following use cases:</p>
	<li>Run JUnit tests contributed by OSGi bundles in an OSGi system. This does not require
Sling, but works in Sling of course.</li>
	<li>Run scriptable tests in a Sling instance, using any supported scripting language.</li>
	<li>Run integration tests via HTTP against a Sling instance that is started during
the Maven build cycle.</li>

<p>This pages describes those tools, and points to the bundles that implement them.</p>

<p>The <a href=""
class="external-link" rel="nofollow">testing/samples/integration-tests</a> module
demonstrates these tools, and is also meant as a sample project to show how to run integration
tests for Sling-based applications.</p>

<p>The main Sling integration tests at <a href=""
class="external-link" rel="nofollow">launchpad/integration-tests</a> were created
before this testing framework, and do not (as of March 2011) use it. The new testing tools
are simpler to use, but the "old" tests (all 400 of them as I write this) fulfill their validation
role for testing Sling itself, there's no real need to modify them to use the new tools.</p>

<h1><a name="SlingTestingTools-ServersideJUnittestscontributedbybundles"></a>Server-side
JUnit tests contributed by bundles</h1>

<h1><a name="SlingTestingTools-Scriptableserversidetests"></a>Scriptable
server-side tests</h1>

<h1><a name="SlingTestingTools-Integrationtestsexample"></a>Integration
tests example</h1>

<h1><a name="SlingTestingTools-Remotetestexecution"></a>Remote test execution</h1>

    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
       <a href="">View
       <a href=";showCommentArea=true#addcomment">Add

View raw message