node-testswarm
Nodejs module for interacting with TestSwarm
Getting Started
Install the module with:
npm install --save-dev testswarm
var testswarm = testUrl = "http://localhost/jquery-core/test/" runs = {}; "attributes" "callbacks"; testswarm;
For local testing, copy sample-test.js
to test.js
and modify to match your local TestSwarm setup.
API
createClient({ url })
Object config
String url
- Url to root of TestSwarm install.
Client#addReporter( reporter )
Object reporter
- usuallytestswarm.reporters.cli
, unless you want to use a custom reporter
Client#auth({ id, token })
Object auth
String id
- Username of TestSwarm account.String token
- Authentication token of account.
Client#addjob( options, callback )
Object options
String name
- name of this jobNumber runMax
- [optional] how often failed tests should rerunObject runs
- Run urls by run name.Array|String browserSets
- which sets to test againstNumber pollInterval
- [optional] In milliseconds, default 5 seconds.Number timeout
- [optional] In milliseconds, default 15 minutes.
Function( Object err, Boolean passed, Object results ) callback
License
Copyright (c) 2014 Jörn Zaefferer Licensed under the MIT license.