Skip to content

t27c test: execute assertions, not just count declarations (t27#11730) #11805

Closed as not planned

Description

@gHashTag

Context

t27c test only counted test/invariant/bench declarations and exited 0 even for a spec with assert always_one() == 999 (always false). This is the false-green trap (t27#11730). The fix: generate the Zig and run zig test when the generated Zig compiles; non-compiling specs keep the legacy declaration-only result (backward compat).

Acceptance criteria

  • With a false assertion planted, t27c test <spec> exits non-zero.
  • With the plant removed, the same command exits 0.
  • Specs whose generated Zig does not compile keep exiting 0 (no regression for declaration counting).

Boundary

bootstrap/src/main.rs

Activity

  1. added
    shape-refusedClosed by the issue-shape gate (specs/policy/issue_shape.t27); a passing edit reopens it
    on Oct 23, 2026
  2. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

    Closed by the issue-shape gate (specs/policy/issue_shape.t27, #7498): an issue must have the template's sections. Edit the body; an edit that passes reopens it.

    • missing: ## User Scenarios -- at least one Given/When/Then scenario
    • missing: ## Requirements -- numbered obligations, FR-001: ... MUST ...
  3. added 4 commits that reference this issue on Oct 24, 2026
    d68654f
    df814ed
    b45b7c6
    0463ab7
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

    shape-refusedClosed by the issue-shape gate (specs/policy/issue_shape.t27); a passing edit reopens it

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions