testswarm

Nodejs module for interacting with TestSwarm

node-testswarm

Nodejs module for interacting with TestSwarm

Install the module with: npm install testswarm.

See addjob documentation what options are available.

var testswarm = require( "./lib/testswarm" ),
testUrl = "http://localhost/jquery-core/test/",
runs = {};
 
["attributes", "callbacks"].forEach(function (suite) {
runs[suite] = testUrl + "?module=" + suite;
});
 
testswarm.createClient( {
url: "http://localhost/testswarm/"
} )
.addReporter( testswarm.reporters.cli )
.auth( {
id: "example",
token: "yourauthtoken"
} )
.addjob(
{
name: "node-testswarm test job",
runs: runs,
browserSets: ["example"],
}, function( errpassed ) {
if ( err ) {
throw err;
}
process.exit( passed ? 0 : 1 );
}
);

For local testing, copy sample-test.js to test.js and modify to match your local TestSwarm setup.

Copyright (c) 2012 Jörn Zaefferer Licensed under the MIT license.