Skip to content

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

@aslakhellesoy

Description

@aslakhellesoy

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.

Metadata

Metadata

Assignees

Labels

🐛 bugDefect / Bug✅ acceptedThe core team has agreed that it is a good idea to fix this

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions