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

Fail @ParameterizedTest if there is no registered ArgumentProvider #4146

Closed
1 task done
marcphilipp opened this issue Nov 22, 2024 · 0 comments · Fixed by #4201
Closed
1 task done

Fail @ParameterizedTest if there is no registered ArgumentProvider #4146

marcphilipp opened this issue Nov 22, 2024 · 0 comments · Fixed by #4201

Comments

@marcphilipp
Copy link
Member

marcphilipp commented Nov 22, 2024

Not declaring any @...Source annotation on a @ParameterizedTest method is most likely a user error and should be surfaced as a test failure rather than being silently ignored (now that #1477 permits zero invocations).

Deliverables

  • Check that there's at least one ArgumentProvider registered in ParameterizedTestExtension and fail the container otherwise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment