Because the JSTD tests can run from the command line, JSTD can be integrated easily with build management tools such as Ant and Maven and also with continuous integration tools such as Hudson. The following code snippet shows an Ant script that runs the runAllTests.bat
file in the jstd\tests
folder.
<project name="weatherApplication" default="runJSTDTests" basedir="."> <target name="runJSTDTests"> <exec executable="cmd"> <arg value="/c"/> <arg value="runAllTests.bat"/> </exec> </target> </project>
Note
For Hudson, you can create a Hudson job that periodically executes the runAllTests.bat
file as a Windows batch command (if you are working on a Linux environment, you can create a job that periodically executes the Linux shell script file).
As a result of running the tests from the command line, you can also integrate the Jasmine and the QUnit tests, which run on top of the JSTD runner...