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

fix(test): ensure that binary is built before the test runs #11

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

samueltardieu
Copy link
Contributor

Description of change

The app.rs test requires that the binsider binary has been built. By moving the test into the tests directory, cargo will ensure that the binary has been built before the test can be run.

How has this been tested? (if applicable)

By running cargo test from a clean directory. It fails before this patch.

Note that this does not fix another issue: the test will still fail when running cargo test --release as it requires the binary to be available in target/debug/.

Copy link

@Omega-Centauri-21 Omega-Centauri-21 left a comment

Choose a reason for hiding this comment

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

These changes will improve the reliability and organization of the tests

Copy link
Owner

@orhun orhun left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! This is smart.

tests/app.rs Outdated Show resolved Hide resolved
The `app.rs` test requires that the `binsider` binary has been built. By
moving the test into the `tests` directory, `cargo` will ensure that the
binary has been built before the test can be run.
Copy link
Owner

@orhun orhun left a comment

Choose a reason for hiding this comment

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

LGTM!

@orhun orhun merged commit efb73b1 into orhun:main Sep 12, 2024
11 of 13 checks passed
@samueltardieu samueltardieu deleted the push-qzkwxolsrxyx branch September 12, 2024 18:42
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