You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo test --all --doc doesn't work if workspace contains a binary crate (including root).
Examples
cargo new --bin root
cd root
cargo new --lib foo
cargo new --lib bar
echo>> Cargo.toml <<EOF[workspace]members = ["foo", "bar"]EOF
cargo test --all --doc #ERRORecho''> src/lib.rs
cargo test --all --doc #OK
cargo new --lib root
cd root
cargo new --lib foo
cargo new --bin bar
echo>> Cargo.toml <<EOF[workspace]members = ["foo", "bar"]EOF
cargo test --all --doc #ERRORecho''> bar/src/lib.rs
cargo test --all --doc #OK
Workaround
Supposing flat workspace:
rc=0
forlibin {.,*}/src/lib.rs;dopushd"${lib%/src/lib.rs}"
cargo test --doc || rc=$?popddoneexit$rc
The text was updated successfully, but these errors were encountered:
As there hasn't been any activity here in over 6 months I've marked this as stale and if no further activity happens for 7 days I will close it.
I'm a bot so this may be in error! If this issue should remain open, could someone (the author, a team member, or any interested party) please comment to that effect?
The team would be especially grateful if such a comment included details such as:
Is this still relevant?
If so, what is blocking it?
Is it known what could be done to help move this forward?
Thank you for contributing!
If you're reading this comment from the distant future, fear not if this was closed automatically. If you believe it's still an issue please leave a comment and a team member can reopen this issue. Opening a new issue is also acceptable!
Description
cargo test --all --doc
doesn't work if workspace contains a binary crate (including root).Examples
Workaround
Supposing flat workspace:
The text was updated successfully, but these errors were encountered: