Skip to content
OniOni edited this page Jun 22, 2012 · 1 revision

Run your test in multiple browsers at the same time

The desired argument accepts an array of (desired)[] browser configurations. wd-unit launches runs the test in all the different browsers in parallel.

Example

This runs foounit tests in firefox and chrome locally. Both browsers run the tests in parallel.

var launcher = require('wd-unit');

launcher.run({
    runner: 'foounit',
    page: 'spec/runner.html',
    desired: [{browserName: 'firefox'}, {browserName: 'chrome'}],
    root: process.argv[1].slice(0, process.argv[1].lastIndexOf('/')),
});