Skip to content

Mocha exits with incorrect code when tests fail #188

@guyht

Description

@guyht

Mocha exits with exit code 0 when tests fail. This means it cannot be used with Travis-CI

http://about.travis-ci.org/docs/user/build-configuration/

The standard Unix exit code of “0” means the build passed; everything else is treated as failure.

Output

✖ 1 of 5 tests failed:


 % echo $?                                                              
 0

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