In order to configure JSTD, you need to follow the ensuing steps:
Download the framework from http://code.google.com/p/js-test-driver/downloads/list. At the time of this writing, the latest release of JSTD is v1.3.4.b. So, the
JsTestDriver-1.3.4.b.jar
file has been used for working with JSTD in this chapter.As recommended in the previous chapters, it is a good habit to separate the JavaScript source and testing files in different folders for the sake of organization.
The second step is to create the JSTD test configuration file,
jsTestDriver.conf
, as shown in the following code snippet:server: http://localhost:9876 load: - src/*.js - tests/*.js
The configuration file is in YAML format (YAML is a recursive acronym for YAML Ain't Markup Language. For more information about the YAML format, check http://yaml.org/.). The
server
directive refers to the JSTD server URL. If theserver
directive is not specified, the server URL will be needed to be specified at the command line....