Skip to content

analysis: discover test-case parameterized Rust tests #3519

Closed

Description

@EffortlessSteven

Problem

The parser-backed Rust adapter recognizes built-in test attributes and rstest, but functions generated by the test-case crate through #[test_case(...)] remain ordinary functions. Ripr therefore cannot relate their calls, assertions, or case literals as test evidence.

Scope

  • promote the explicit #[test_case(...)] and #[test_case::test_case(...)] attribute forms at the fact-normalization boundary
  • preserve their attributes on TestFact
  • expose case-argument literals and body assertions through the ordinary Rust index
  • regression-cover ordinary rstest, both test-case spellings, plain #[test], and an unannotated helper together

Boundaries

No procedural-macro expansion, arbitrary custom-harness inference, generic *::test heuristic, or runtime-execution claim.

Activity

  1. EffortlessSteven commented on Aug 28, 2026

    @EffortlessSteven
    MemberAuthor

    Coordination with #3499 and the #3213 train

    This issue’s test-case scope is a strict subset of #3499’s exact shared test-attribute classifier:

    test_case
    test_case::test_case
    

    Do not implement a second test-case-specific discovery path or spelling list here. The canonical production change should live in #3499’s shared parser/fallback classifier, with this issue serving as the focused test-case acceptance case unless fresh evidence establishes a genuinely separate contract.

    Downstream consumers must receive the resulting executable-test role through #3531. The integrated parser/fallback and consumer denominator belongs to #3534.

    Safe disposition after #3499 lands:

    Until then, #3499 and #3519 should not produce competing branches for the same classifier.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions