You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a cleaner way to find a binary executable from an integration test other than looking at current_exe() and finding it from there? Cargo itself uses this logic:
The if path.ends_with("deps") is a compatibility hack for older Cargos, but otherwise that's AFAIK the "state of the art" in terms of being robust to future tweaks in Cargo as well.
Is there a cleaner way to find a binary executable from an integration test other than looking at
current_exe()
and finding it from there? Cargo itself uses this logic:cargo/tests/testsuite/cargotest/support/mod.rs
Lines 392 to 409 in 8482505
I've seen others use
Command::new("./target/debug/NAME")
which can fail in some cases.It seems like this should be easier. Am I missing a better way? If not, would it make sense to provide some method to more easily find binaries?
The text was updated successfully, but these errors were encountered: