Files
taimed/node_modules/testswarm/sample-test.js
2025-07-24 17:21:45 +08:00

29 lines
563 B
JavaScript

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 );
}
);