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 status is 1 when running with --dry-run #1768

Closed
aslakhellesoy opened this issue Aug 11, 2021 · 3 comments · Fixed by #1814
Closed

Exit status is 1 when running with --dry-run #1768

aslakhellesoy opened this issue Aug 11, 2021 · 3 comments · Fixed by #1814
Assignees
Labels
🐛 bug Defect / Bug ✅ accepted The core team has agreed that it is a good idea to fix this

Comments

@aslakhellesoy
Copy link
Contributor

Describe the bug

Running cucumber-js --dry-run exits with 1.

Expected behavior

I expected a 0 since nothing is run.

Context

I'm building an LSP language server which will spawn cucumber in dry-run mode (to capture step definitions and steps so we can build up an autocomplete index). Because it exits with 1 I'm unable to tell whether the command failed because of a real error or not.

@aslakhellesoy aslakhellesoy added the 🐛 bug Defect / Bug label Aug 11, 2021
@davidjgoss
Copy link
Contributor

@aslakhellesoy do you have undefined/pending/ambiguous steps when you're seeing this?

@aslakhellesoy
Copy link
Contributor Author

I don’t remember TBH - maybe some undefined ones. In any case, I think the exit status should always be 0 regardless of undefined/ambiguous steps.

@davidjgoss
Copy link
Contributor

@davidjgoss davidjgoss added the ✅ accepted The core team has agreed that it is a good idea to fix this label Aug 21, 2021
@davidjgoss davidjgoss self-assigned this Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Defect / Bug ✅ accepted The core team has agreed that it is a good idea to fix this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants