A QUnit Addon For Running Multiple Test Files

Composite is a QUnit addon that, when handed an array of files, will open each of those files inside of an iframe, run the tests and display the results as a single suite of QUnit tests.

Using Composite

To use Composite, setup a standard QUnit html page as you would with other QUnit tests. Remember to include composite.js and composite.css. Then, inside of either an external js file, or a script block call the only new method that Composite exposes, QUnit.testSuites().

QUnit.testSuites() is passed an array of test files to run as follows:



Composite Demo: A suite which demoes how Composite is bootstrapped and run.