Skip to content

wireframe_testing doctests fail to compile; crate's own tests never run in CI #578

Description

@leynos

Context

The first sharded mutation-testing dispatch run (Stage E of the shared-workflow adoption, actions/runs/28806201980) failed its wireframe_testing target with exit 4: the unmutated baseline fails because the crate's doctests do not compile.

Reproduced locally from wireframe_testing/:

  • cargo test --doc → "error: doctest failed"
  • cargo test --doc --all-features → repeated error[E0283]: type annotations needed for WireframeApp<BincodeSerializer, (), _, _> across the client_pair, codec_drive, and drive helper doctests (12+ compile failures).

Why this was never caught

wireframe_testing is deliberately not a workspace member, so make test / CI (cargo test --all-targets --all-features at the root) never compiles or runs this crate's own test targets. The mutation baseline is the first automation to execute cargo test inside the crate, and it surfaced the latent breakage. The doctests presumably compiled when written and drifted when WireframeApp's type parameters changed.

Impact

  • Every doctest example in the crate's rustdoc is currently broken for readers who copy it.
  • The mutation-testing wireframe_testing target cannot run (baseline exit 4 is treated as a genuine fault, correctly). The caller temporarily drops extra-crate-dirs: "wireframe_testing" with a comment referencing this issue; restore it when the doctests compile.

Suggested fix

Update the doctest examples to annotate the WireframeApp type parameters (or use the builder in a way that fixes inference), and add a CI step that runs cargo test --all-features inside wireframe_testing/ so the crate's own targets cannot silently rot again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmediumCould be disruptive, but might not happentesting

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions