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

Add --failure-exit-code option #949

Merged
merged 3 commits into from Apr 23, 2024

Conversation

hatsu38
Copy link
Contributor

@hatsu38 hatsu38 commented Apr 23, 2024

Fixes: #948

Like: rspec --failure-exit-code=0 (https://rspec.info/features/3-13/rspec-core/command-line/exit-status/ )

I want to execute a command like this.

bundle exec rake "parallel:spec[--failure-exit-code=0]"

Checklist

  • Feature branch is up-to-date with master (if not - rebase it).
  • Added tests.
  • Added an entry to the Changelog if the new
    code introduces user-observable changes.
  • Update Readme.md when cli options are changed

@grosser
Copy link
Owner

grosser commented Apr 23, 2024

how about parallel_tests || true ? :)

"--highest-exit-status",
<<~TEXT.rstrip.split("\n").join("\n#{newline_padding}")
Exit with the highest exit status provided by test run(s)
If failure-exit-code is specified, that value takes priority.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just fail if both are given

Copy link
Owner

@grosser grosser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally not against it, just never found a use for it 🤷

@grosser grosser merged commit 185faa4 into grosser:master Apr 23, 2024
13 checks passed
@grosser
Copy link
Owner

grosser commented Apr 23, 2024

thx! 4.7.0

@hatsu38 hatsu38 deleted the add-failure-exit-code-option branch April 23, 2024 15:29
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

Successfully merging this pull request may close these issues.

Add failure-exit-code option to customize exit code on test failures
2 participants