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

Let @BeforeEach etc. access argvuments passed to parameterized test #4356

Closed
reftel opened this issue Feb 28, 2025 · 1 comment
Closed

Let @BeforeEach etc. access argvuments passed to parameterized test #4356

reftel opened this issue Feb 28, 2025 · 1 comment

Comments

@reftel
Copy link

reftel commented Feb 28, 2025

For plain @Tests a @BeforeEach can get informastion about the test that will be run by declaring a TestInfo parameter, and for @RepeatedTest it can declare a RepetitionInfo parameter to get interation count etc., but there appears to be no corresponding way to get any information about the parameters for a @ParameterizedTest.
Would it be possible to add some class, e.g. a ParametersInfo, from which it can get the actual arguments that will be passed to the @ParameterizedTest?

@sormuras
Copy link
Member

Closing as a duplicate of

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

No branches or pull requests

2 participants