`build.rs` line change slows tests
Closed this issue · 2 comments
cloudhead commented
The following line in my build.rs makes nextest take 100s+ instead of 12s:
println!("cargo::rerun-if-changed=.git/HEAD");
This is on rust 1.77. When I was on 1.74, the line looked like this, and didn't have an effect on test speed:
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
If I remove the line, tests are fast again. Worth noting that cargo test --all
is not affected by this.
sunshowers commented
Thanks for the report! That sounds like a build-time thing which nextest doesn't customize in any way. Do you have a minimal repro or example somewhere?
cloudhead commented
I'm not experiencing this anymore and I forgot how I resolved it, sorry! Closing.