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

Method used in Parameters(method="") is shown as unused in intelliJ #156

Open
amkonarska opened this issue Jul 3, 2018 · 2 comments
Open

Comments

@amkonarska
Copy link

Do you have any plans on improving that? I can imagine that it is not the highest priority thing.
It is not a warning for me and I know that I can use @SuppressWarnings("unused") but I just don't think it is a proper solution.
TestNG is dealing with that somehow so maybe it is a good place to see how it could be done? There to use parametrisation you need to use @Test(dataProvider = <method name here>) and then annotate method with @DataProvider. It also supports renaming method out of the box somehow.

@michal-lipski
Copy link
Contributor

Hi,

features you are talking about comes from IntelliJ that has support for TestNG.

To solve the problem with the unused method we might introduce new annotation to mark data provider methods (similar as in TestNG) Only having an annotation on method should remove unused warning.

@amkonarska
Copy link
Author

amkonarska commented Jul 6, 2018

Hi,

I had no idea that it comes from IntelliJ support for TestNG. Assuming that having an annotation would not work - the only thing left would be to write a plugin for IntelliJ?

Thanks for super prompt answer btw :)

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

No branches or pull requests

2 participants