Skip to content

Dead test suites: weaver-sandbox src/tests and weaver-syntax tests/e2e are never compiled #231

Open

Description

@leynos

Problem

The test-quality sweep (branch test-quality-sweep) found two test suites that are never compiled or run:

  1. crates/weaver-sandbox/src/tests/ — src/lib.rs declares only env_guard, error, profile, runtime, and sandbox; there is no mod tests; declaration (and no #[path] include), so the entire sandbox unit/BDD suite, including tests/features/sandbox.feature, is dead code. This appears to date from commit 2f359eb.
  2. crates/weaver-syntax/tests/e2e/ — there is no tests/e2e.rs (or tests/e2e/main.rs) harness and no [[test]] manifest entry, so tests/e2e/mod.rs is not an auto-discovered integration-test target. The e2e__*.snap snapshot files are orphans. crates/weaver-syntax/tests/features/weaver_syntax.feature likewise has no harness file.

Both suites were refactored during the sweep to current test-quality conventions, but nothing verifies them; enabling them was deliberately left out of the sweep because wiring in a previously dead suite is a behavioural change that may surface fresh compile/lint/test failures on first compilation.

Suggested remedy

  • Wire weaver-sandbox tests in with a #[cfg(test)] mod tests; declaration in src/lib.rs and fix whatever surfaces.
  • Add a tests/e2e.rs harness (or rename tests/e2e/mod.rs to tests/e2e/main.rs) for weaver-syntax, plus harnesses for the .feature files, and fix whatever surfaces.

References

Found during the test-quality sweep; see also #230 for the related environment-mutation findings.

Activity

  1. added
    bug
    low
    testing
    on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglowtesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions