| Task to automate running in-container unit test. It has the following
syntax when used in Ant :
<runservertests testURL="&t;url>"
starttarget="<start target name>"
stoptarget="<stop target name>"
testtarget="<test target name>"/>
where <url> is the URL that is used by this task to
ensure that the server is running. Indeed, the algorithm is as follow :
- Checks if server is running by trying to open an HTTP connection to
the URL,
- If it fails, call the start target and loop until the HTTP connection
the URL can be established,
- Call the test target. This target is supposed to start the test,
usually by running the junit Ant task,
- When the tests are finished, call the stop target to stop the server.
Note: The stop target is called only if the server was not already running
when this task was executed.
since: Cactus 1.5 version: $Id: RunServerTestsTask.java 239003 2004-05-31 20:05:27Z vmassol $ |