Skip to content

Set correct exit status #181

@apfelbox

Description

@apfelbox

Hi,

the runner doesn't seem to set a correct exit code if the build failed.

That's why I have the curious case that the log says:

[OS X Sierra, Firefox 54.0] Failed: 39 tests, 38 passed, 1 failed, 0 skipped; ran for 266ms
[OS X Sierra, Chrome 59.0] Failed: 39 tests, 38 passed, 1 failed, 0 skipped; ran for 474ms
All tests done, failures: 2.

But the exit code is 0 and travis says

The command "npm test" exited with 0.

and my build is green.
Is there a chance to set the correct status code?

browserstack-runner 0.5.1
npm 5.0.3
node 8.1.3

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