Skip to content

feat(cases): add a boolean flag to return Error in case the binary was not resolved #386

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

veeso
Copy link

@veeso veeso commented Apr 22, 2025

Hello there!

At Bitfinity we had this issue where we moved the tool we were testing and for literally months we didn't notice the tests were ignored, because our CI is huge.

I think that providing the possibility to fail in case the binary was not resolved would be very good for many users.

In this PR I've added a boolean flag to make the case to fail in case the binary was not resolved.

I'm open to any style change on the code I've written.

@epage
Copy link
Contributor

epage commented Apr 23, 2025

FYI the issue where this is being discussed is #105.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 14592626116

Details

  • 11 of 15 (73.33%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.05%) to 50.375%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/trycmd/src/cases.rs 2 4 50.0%
crates/trycmd/src/runner.rs 9 11 81.82%
Totals Coverage Status
Change from base Build 14248011671: 0.05%
Covered Lines: 1411
Relevant Lines: 2801

💛 - Coveralls

@epage
Copy link
Contributor

epage commented Apr 23, 2025

I posted my follow up thoughts on this solution in #105 (I try to reserve PRs only for reviewing implementation)

@veeso veeso force-pushed the option-to-fail-if-binary-not-found branch from fda4657 to eef0787 Compare April 24, 2025 09:12
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.

3 participants