As we know from the definition of JSTD, it is not only a JavaScript test framework but also a complete test runner that can run other JavaScript frameworks on top of it, using adapters . Fortunately, JSTD has many ready-made adapters, developed by the open source community, that enable many JavaScript frameworks (such as Jasmine, QUnit, and YUI Test) to integrate with JSTD. The integration of JSTD with both Jasmine and QUnit is highly required because these testing frameworks do not have an out-of-the-box mechanism for executing the tests from the command-line interface (unlike YUI Test, which can run from the command line using YUI Test Selenium Driver, as illustrated in detail in Chapter 3, YUI Test). Having the ability to execute the tests from the command-line interface allows automating the running of tests by using the build and the continuous integration tools.
In this section, the required steps and tricks that are needed for integrating...