Skip to content

Meta-tests for resyntax/test failure reporting #821

Description

@jackfirth

test/private/rackunit.rkt is at 76.8% coverage (69 missed lines), and the misses are exactly the code that runs when a refactoring test fails: the code-block pretty-printing writer and the failure message rendering. The raise-syntax-error paths in test.rkt for unbound or non-statement identifiers are similarly untested. Covering these means meta-tests: deliberately-failing checks run via rackunit's run-test-case with assertions on the failure output.

This is worth more than the coverage points. Reviewers lean on this failure output when reviewing AI-written rule PRs, and right now it's the least-tested part of the test framework itself.

Part of #680.

Activity

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

    testingTests and testing tools

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions