Skip to content

Ctrl+C/SIGINT interacts poorly with retry and fail-fast #1763

Open
@timreinkeaxios

Description

@timreinkeaxios

👓 What did you see?

Ctrl+C sends INT which sets wants_to_quit. But, rather than exiting as soon as possible, cucumber will continue to retry.

Further, when --retry is combined with --fail-fast and interrupted, cucumber fails to exit entirely if a retry passes because fail fast sets wants_to_quit = false on success

Sending the second INT does exit immediately, but for dealing with cleanup/teardown in CI, it would be better to have a single INT work properly.

✅ What did you expect to see?

Tests should not retry after interrupt, and should always exit after current scenario.

📦 Which tool/library version are you using?

cucumber-9.2.0

🔬 How could we reproduce it?

Made a quick demo here:
https://github.com/timreinkeaxios/cucumber-int-demo

📚 Any additional context?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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