Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: include annotated methods in parameterized classes when filtering with test-targets #2537

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

SelaseKay
Copy link
Collaborator

Description

This PR fixes an issue where annotated test methods in classes annotated with @RunWith(Parameterized::class) were not included in test runs when using test-targets to filter by annotation. Now, parameterized test methods with the specified annotation are correctly included in the generated android_shards.json when running Flank with the --dump-shards option.

Fixes #2480

Test Plan

A unit test has been added to verify this fix.

The test passes with the current fix applied.
The test fails without the fix, confirming the issue and validating the solution.

Checklist

  • Documented
  • Unit tested
  • Integration tests updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parameterized test classes do not respect test-targets filters by annotation
2 participants