samedi 2 mai 2015

Locating resources for testing with cargo

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)?

Aucun commentaire:

Enregistrer un commentaire