Skip to content

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

Merged
orhun merged 1 commit into
orhun:mainfrom
samueltardieu:push-qzkwxolsrxyx
Sep 12, 2024
Merged

fix(test): ensure that binary is built before the test runs#11
orhun merged 1 commit into
orhun:mainfrom
samueltardieu:push-qzkwxolsrxyx

Conversation

@samueltardieu

Copy link
Copy Markdown
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/.

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

Copy link
Copy Markdown

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

@orhun orhun left a comment

Copy link
Copy Markdown
Owner

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.

Comment thread tests/app.rs Outdated
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.

@orhun orhun left a comment

Copy link
Copy Markdown
Owner

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
@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