saucelabs-buildstatus
Retrieve sauce labs build status with dual error-first callback and Promise API.
npm install saucelabs-buildstatus --save
npm stats
API Example
Build status 'passing'
var status = // error-first callback API//=> { status: 'passing' } // promise API //=> { status: 'passing' }
Build status 'failed'
var status = // error-first callback API//=> { status: 'failed' } // promise API //=> { status: 'failed' }
Build status 'unknown'
var status = // error-first callback API//=> { status: 'unknown' } // promise API //=> { status: 'unknown' }
Error: Account not found
// error-first callback API//=> { status: 'error', error: 'Account not found' } // promise API //=> { status: 'error', error: 'Account not found' }
API
status(sauceUsername)
arguments
sauceUsername (String)
Saucelabs user/project name.
returns
(Object)
Status object.
Reference
- Using Status Badges and the Browser Matrix Widget to Monitor Test Results
- Free unlimited testing for open source projects
Related
Contributing
SEE: contributing.md