Skip to content

Feature request: Filter retriable tests at method level #391

Open

Description

@smola

In both develocity and test-retry, includeAnnotationClasses specifies an annotation that can be set at class-level to filter retriable tests.

Ideally, I would like to annotate specific methods (in Spock and JUnit 5) that can be retried. To set retriability at the most granular level possible and avoid retrying tests wihout expected flakiness.

Activity

  1. pshevche commented on Apr 1, 2025

    @pshevche
    Member

    @smola , thank you for reporting. We'll see what we can do about it.

  2. akalupkin commented on Jul 15, 2025

    @akalupkin

    Missing this feature. Will be great if it will work both includeAnnotatedMethod and excludeAnnotatedMethod - last one can be helpful skipping retries for methods that annotated as known issues

  3. pralkarz commented on Jun 29, 2026

    @pralkarz

    Does this project accept outside contributions? I don't see a CONTRIBUTING.md, but this would be really useful feature to have (unless it's not feasible to implement).

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions