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 0 when before_all fails #193

Open
michalkovy opened this issue Feb 13, 2025 · 1 comment
Open

Exit code 0 when before_all fails #193

michalkovy opened this issue Feb 13, 2025 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@michalkovy
Copy link

Behavex reports incorrectly exit code 0, like if tests succeeded, when tests fail because before_all failed using thread.interrupt_main().

To Reproduce

Put this into environment.py:

def before_all(context):
    thread.interrupt_main()

and start tests.

Expected behavior
Non-zero exit code

Screenshots
Image

@hrcorval hrcorval added the good first issue Good for newcomers label Feb 13, 2025
@hrcorval
Copy link
Owner

Hi @michalkovy, thanks a lot for posting this issue. We will consider it for the upcoming minor release. We will keep you posted as soon as this is delivered.

Thanks again

@hrcorval hrcorval added the bug Something isn't working label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants