v0.12.1
·
21 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Fixed
- cargo: a test target whose name differs from its file's stem (#134): the adapter derived the
target from theRunning tests/<file>.rsheader's path, which is only the target's name under
cargo's default of one binary pertests/*.rs. A crate that setsautotests = falseand declares
its own[[test]]— many files compiled into one binary named something else — was unreachable:
collection ran--test <stem>and cargo answeredno test target named `<stem>` in default-run packages, so every cycle target came backnot_collected, whatever id the plan declared. The
target is now read from the artifact the header names (…/deps/bridge_tests-<hash>), which is
also the only thing distinguishing two crates in a workspace whose test files are both
tests/main.rs. The crate manifests supply the mapping back: target → the file it is built from
fortarget_pathand the collection file set, and the declared spelling for--test, since cargo
writes a target's-as_in the artifact. Manifests are located by walking up from the declared
test_paths, not from_test_files(), which does not expand a wildcard directory pattern such as
crates/*/tests/. Under the default layout target and stem still agree and nothing changes.