Reproduction:
- set up test using
test_each_path
- run
cargo test, ensuring the tests pass
- change contents of the target test directory to cause test failure
- run
cargo test again. Tests should fail, but don't
I assume this is because test_each_path is done at runtime while test_each_file is at compile time.
The problem is that I need the filenames for output comparison, while test_each_file only provides the file contents.
Is there a way to get the file path with test_each_file, or otherwise flag the directory for cargo?
Reproduction:
test_each_pathcargo test, ensuring the tests passcargo testagain. Tests should fail, but don'tI assume this is because
test_each_pathis done at runtime whiletest_each_fileis at compile time.The problem is that I need the filenames for output comparison, while
test_each_fileonly provides the file contents.Is there a way to get the file path with
test_each_file, or otherwise flag the directory for cargo?