-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Make invocation index for @ParameterizedTest
available to test author
#1668
Comments
FYI: this is closely related to #944. |
Tentatively slated for 5.4 M1 for team discussion |
It would also be helpful to have the index available in the |
A non-intrusive way of adding this would be to add the invocation index to @Gabology @mschechter-bellese Would that work in your use case? |
Tentatively slated for 5.8 M2 solely for the purpose of team discussion. |
Would that make it available to the methods implemented for |
No, |
Yes, that makes sense. I think I would need a different solution, then. Could you please let me know if there's an existing issue that covers this? |
I think #1139 is closely related. |
Thanks! |
Team decision: Add |
@Gabology @mschechter-bellese Would one of you be interested in submitting a PR for this? |
I am currently more focused on making the invocation index available to Quick question: if the invocation index is to be accessible from the |
From there it needs to be passed to |
I have the |
@ParameterizedTest
to test author
@ParameterizedTest
to test author@ParameterizedTest
available to test author
Overview
The invocation index of a parameterized test is accessible for templating when setting the display name of the test.
When it comes to accessing the invocation index using
TestInfo
it is not possible as it looks like theTestInfo
implementation for@ParameterizedTest
is of the default type. I would expect to get anRepetitionInfo
instance so that I can access the invocation index programmatically.Related Issues
The text was updated successfully, but these errors were encountered: