Skip to content

Add #[DoesNotPerformAssertions] #116

@roxblnfk

Description

@roxblnfk

Marks a test method (or class) as intentionally not performing assertions, suppressing the automatic Risky status that Testo assigns to Passed tests with an empty assertion history.

Semantics:

  • Applicable to methods, functions, and classes (class-level applies to every test in the class).
  • A test annotated with the attribute that finishes with Passed and no recorded assertions stays Passed instead of being downgraded to Risky.
  • The attribute is a hint about intent only — it does not change failure handling. Exceptions, expectation failures, and recorded assertion failures still mark the test as Failed / Error as usual.
  • Useful for smoke tests (e.g. "constructor does not throw"), tests that delegate verification to external tooling (snapshots, mutation testing), or tests that observe side effects via listeners/interceptors outside TestState.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions