Commit 53f3fa2
fix(tests): Use cargo_bin macro for binary discovery in tests
Use the `cargo_bin!` macro from assert_cmd to locate the sentry-cli
binary. This reads the `CARGO_BIN_EXE_sentry-cli` environment variable
set by Cargo at compile time, making tests work regardless of custom
`build-dir` settings in cargo config.
Previously, both `Command::cargo_bin()` and trycmd's internal binary
discovery would fail when a custom build directory was configured,
causing tests to either error or silently pass as "ignored".
Co-Authored-By: Claude <noreply@anthropic.com>1 parent e0b0c69 commit 53f3fa2
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
231 | | - | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
0 commit comments