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

Exit code of executed command is swollowed #28

Open
mass85 opened this issue Apr 1, 2022 · 0 comments
Open

Exit code of executed command is swollowed #28

mass85 opened this issue Apr 1, 2022 · 0 comments

Comments

@mass85
Copy link

mass85 commented Apr 1, 2022

It is a good practice to make your test command exit with non-zero code when one of the tests fails. This may be then interpreted easily by i.e. a CI and mark the CI job as failed. Unfortunately when you use node-env-run to pass environemnt variable to your tests, the exit code is always 0.

The below will always succeed (provide exit code 0) even though cucumberjs failed.
nodenv -E test.env --exec 'cucumberjs'

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