-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make cargo test
work
#117
Comments
Unfortunately |
Ahh, that's too bad. One option to fix that would be something like this: fn test_helper() -> PathBuf {
let path = executable_path("cradle_test_helper");
if !path.exists() {
cmd_unit!(%"cargo build --bin cradle_test_helper --features test_executables");
}
path
} And have tests get the path to the helper by running |
Sadly, I think that only works when you don't change the We could look at the time stamps, and recompile when the modification time of the source files is newer than the executable. But then we're pretty much in the business of writing a small build system, and I'm a bit hesitant to do that. Here's two ideas:
|
I think 1 sounds the best. I'm guessing that it's very fast, and probably what |
Currently,
cargo test
doesn't work out of the box, and extra flags are needed. The simplest way to make this work is probably to just add a mutex toin_temp_dir
.The text was updated successfully, but these errors were encountered: