-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
useTestNg() has limited list of command line args which can be passed to TestNg runner #18828
Comments
Could you pls. provide an exact setup/reproducer to check against, if we add the missing features? |
@jbartok Sure. Will provide. |
Please, see example projects here: https://github.com/achahan/spiExample So, the issue was created because it might make sense to add custom parameters support to gradle testng plugin. In order not to support each of possible TestNg command line parameters. So that one could do something like example below from gradle test task: |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
Sorry for the late reply. Thank you for your interest in Gradle! This feature request is in the backlog of the relevant team, but this area of Gradle is currently not a focus one, so it might take a while before it gets implemented. |
I would like to have this feature added to I don't think this will require much effort on Gradle's end to enable this feature to allow users to send custom args to TestNG invocation. This is already supported by TestNG and Maven surefire plugin. It will be also helpful for many other use cases where people are using Gradle with TestNG. Please prioritise this issue if possible. Existing Gradle DSL is really limited in terms of TestNG usage and it would be really helpful to allow this option for maximum flexibility while using TestNG as test framework with gradle. |
The list of command line arguments supported by TestNg runner is changing. New arguments appear. TestNg plugin supports parameters defined in TestNgOptions class only. Which is not flexible and limits features can be used.
Expected Behavior
It is possible to pass TestNg command line arguments as string key/value pairs.
Current Behavior
Can only set limited number of command line attributes.
Context
It is possible to inject TestNg listeners via ServiceLoader. A feature which allows to disable some of injected implementations was added in latest TestNg versions. I want to pass a command line argument "spiListenersToSkip"; but it's not possible as the argument is not supported by plugin.
The text was updated successfully, but these errors were encountered: