-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I think in SauceLabs if you have let's say 10 tests in a test suite they don't show you the individual test names in their reporting UI, but they do give an overall pass or fail. Is this code wrong then since it bases the state of the test suite based on the success of the last test run in a suite? Should it be instead returning pass only if all tests in the suite passed or am I not thinking about it correctly?
var sessionid = this.capabilities['webdriver.remote.sessionid'],
jobName = this.currentTest.name,
passed = this.currentTest.results.testcases[jobName].failed === 0;
console.log("SauceOnDemandSessionID=" + sessionid + " job-name=" + jobName);
myAccount.updateJob(process.env.SAUCE_USERNAME, sessionid, {passed: passed});
Metadata
Metadata
Assignees
Labels
No labels