I'm on a project interacting with files, and I would like to use text files to test my work. However tests aren't run from the tests/
directory, and thus I cannot reliably find them when running cargo run
.
Does Cargo handle this by always running test from the root directory (which seems to be the case but I didn't find anything attesting it)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…