testswarm

Nodejs module for interacting with TestSwarm

npm install testswarm
73 downloads in the last day
566 downloads in the last week
2 603 downloads in the last month

Build Status NPM version

node-testswarm

Nodejs module for interacting with TestSwarm

Getting Started

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( err, passed ) {
        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.

License

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

npm loves you