Skip to content

Not getting the individual test results? #17

@reallymello

Description

@reallymello

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions