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
See the test project here. It's a simple workspace project with a member package member-one. The member-one package has an error in a unit test, so it builds when cargo build --workspace or cargo test are run from the root, but fails when cargo test --workspace is run from the root.
If I run bacon in the root directory, it builds the whole workspace by default. If you create an error in member-one in the non-test code, it's shown. If you remove it, it all passes.
If I then press t, Bacon still shows the project as passing, even though using cargo test --workspace directly fails. It seems like Bacon is doing a whole-workspace build, but not testing the whole workspace.
Versions:
bacon: 2.16.0
rustc: 1.77.0
cargo: 1.77.0
OS: Ubuntu 23.10
Rust toolchain installed via Rustup, default is stable. Bacon installed via Cargo.
The text was updated successfully, but these errors were encountered:
@jwilger it's the inconsistency of it that's really the crux of the issue:
if the default package is in the state "fails to build", there's a visible error
fixing the build error but leaving a test failure (state = "tests failing") results in the test failure becoming apparent
fixing the test failure results in no visible errors (state = "all good")
But
in the state "member package fails to build", there's a visible error
fixing the build error but leaving a test failure results in no visible errors, so it seems like state = "all good" because that's what the other scenario does, when actually state = "tests failing"
See the test project here. It's a simple workspace project with a member package
member-one
. Themember-one
package has an error in a unit test, so it builds whencargo build --workspace
orcargo test
are run from the root, but fails whencargo test --workspace
is run from the root.If I run
bacon
in the root directory, it builds the whole workspace by default. If you create an error inmember-one
in the non-test code, it's shown. If you remove it, it all passes.If I then press t, Bacon still shows the project as passing, even though using
cargo test --workspace
directly fails. It seems like Bacon is doing a whole-workspace build, but not testing the whole workspace.Versions:
Rust toolchain installed via Rustup, default is stable. Bacon installed via Cargo.
The text was updated successfully, but these errors were encountered: