Skip to content

fix: use cargo_bin! macro in integration tests (fixes #844)#875

Open
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:fix/assert-cmd-cargo-bin-macro-844
Open

fix: use cargo_bin! macro in integration tests (fixes #844)#875
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:fix/assert-cmd-cargo-bin-macro-844

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 16, 2026

Summary

Replaces deprecated Command::cargo_bin from assert_cmd::CommandCargoExt with Command::new(assert_cmd::cargo::cargo_bin!(\"hyperfine\")) in tests/common.rs.

The trait-based API is deprecated and will break when Cargo changes build directory layout (rust-lang/cargo#16147).

Test plan

  • cargo test --locked (39 integration tests pass)

Fixes #844

Made with Cursor

Replace deprecated Command::cargo_bin with assert_cmd::cargo_bin!
so tests keep working with future Cargo versions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@leno23
Copy link
Copy Markdown
Author

leno23 commented May 16, 2026

CI is green on all targets. Gentle ping when you have a moment — thanks!

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.

Tests rely on deprecated assert_cmd::cargo_bin which will break on future Cargo versions

1 participant