Skip to content

Allow customization of parameterized test argument names #2378

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

Closed
asarkar opened this issue Aug 11, 2020 · 3 comments
Closed

Allow customization of parameterized test argument names #2378

asarkar opened this issue Aug 11, 2020 · 3 comments

Comments

@asarkar
Copy link

asarkar commented Aug 11, 2020

I've a parameterized test that receives a parameter of type kotlin.reflect.KFunction. For each execution of this test, I'd like to show the simple name of the KFunction, not the FQN that currently shoots out of the screen. I've seen the discussion in #2301 and #2375, but not clear how the Named solution proposed there would help my case. If I could get hold of the actual argument passed to the test method, then I could get the simple name out very easily. I think this problem holds for a Java Method too, so Kotlin or KFunction isn't the use issue.

@sbrannen
Copy link
Member

Closing as a duplicate of #1154

@asarkar
Copy link
Author

asarkar commented Aug 11, 2020

@sbrannen Looks like #1154 is almost 3 years old and not going anywhere.

@sbrannen
Copy link
Member

@sbrannen Looks like #1154 is almost 3 years old and not going anywhere.

The origin is old, but the Team Decision to implement it dates only back to June of this year: #1154 (comment).

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