Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not getting the individual test results? #17

Open
reallymello opened this issue Aug 14, 2020 · 0 comments
Open

Not getting the individual test results? #17

reallymello opened this issue Aug 14, 2020 · 0 comments

Comments

@reallymello
Copy link

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});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant