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

Add support for registering custom listeners #5

Closed
marcphilipp opened this issue Jul 9, 2021 · 0 comments · Fixed by #7
Closed

Add support for registering custom listeners #5

marcphilipp opened this issue Jul 9, 2021 · 0 comments · Fixed by #7
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@marcphilipp
Copy link
Member

While the testng.useDefaultListeners configuration parameter can be used to selectively register TestNG's default listeners, custom listeners can currently only be registered via ServiceLoader. However, that's global and doesn't support registering them for a particular test run. Hence, a new testng.listeners configuration parameter should be introduced that contains a comma-separated list of fully qualified class names of listeners that should be registered.

@marcphilipp marcphilipp added the enhancement New feature or request label Jul 9, 2021
@marcphilipp marcphilipp added this to the 1.0.0-M2 milestone Jul 9, 2021
@marcphilipp marcphilipp changed the title Add support for custom listeners Add support for registering custom listeners Jul 9, 2021
marcphilipp added a commit that referenced this issue Jul 9, 2021
The new `testng.listeners` configuration parameter now allows to
register custom listeners as a comma-separated list of fully-qualified
class names.

Fixes #5.
@marcphilipp marcphilipp self-assigned this Jul 9, 2021
marcphilipp added a commit that referenced this issue Jul 9, 2021
The new `testng.listeners` configuration parameter now allows to
register custom listeners as a comma-separated list of fully-qualified
class names.

Fixes #5.
marcphilipp added a commit that referenced this issue Jul 9, 2021
The new `testng.listeners` configuration parameter now allows to
register custom listeners as a comma-separated list of fully-qualified
class names.

Fixes #5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant