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
Yeah today build scripts aren't re-run for tests (only for libraries), but I think this is covered by #1581 so closing in favor of that. Thanks for the report though!
there is no way for the build script to know that we are testing,
cfg(test) isn't propagated to the script, so we use the feature "test".
rust-lang/cargo#2549
Signed-off-by: Stefan Hertenberger <erde74@gmail.com>
When using a
build.rs
file, cargo doesn't seem to pass thetest
flag whencargo test
is used.Does not work. As a workaround you can use features:
But it requires you to use
cargo test --features=test
The text was updated successfully, but these errors were encountered: