rstest seems to correctly find the files and creates individual test cases as expected, however the PathBuf variable each test is then called with contains the wrong path:
I'm not quite sure where this is coming from. I tried to override testPreRun and peek at the env vars being set, and couldn't find anything setting it - neither any references to sources in the emitted Cargo.nix.
The working dir is /build, and /build/source doesn't exist, and isn't referred from anywhere.
For Tvix, we tried to switch from
test_resources
torstest
, and use its#[files]
feature for globbing.rstest
seems to correctly find the files and creates individual test cases as expected, however thePathBuf
variable each test is then called with contains the wrong path:Rather than
the test is called with
(note the additional
/source
) being added)I'm not quite sure where this is coming from. I tried to override
testPreRun
and peek at the env vars being set, and couldn't find anything setting it - neither any references tosources
in the emittedCargo.nix
.The working dir is
/build
, and/build/source
doesn't exist, and isn't referred from anywhere.Any idea where this is coming from?
Tested with 0.13.0.