Set test results for a Sauce Labs job
Example status image:
Simply call the function with the options object and a callback function.
var results = require'sauce-results';resultsuser: sauceUserkey: sauceKeyjob: sauceJobIdpassed: true// Handle err if it exists;
user: The Sauce Labs username for the tests
key: The Sauce Labs key for the provided user
job: The Sauce Labs job ID. If none is provided, it will retrieve the last job ID.
passed: Boolean indicating if the job passed or not
Thanks goes to @rvagg for doing something like this in brtapsauce. This module was split out from the larger project and rewritten based on his code.