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

Streamline TestNG listener instantiation #2843

Open
krmahadevan opened this issue Dec 2, 2022 · 0 comments
Open

Streamline TestNG listener instantiation #2843

krmahadevan opened this issue Dec 2, 2022 · 0 comments

Comments

@krmahadevan
Copy link
Member

TestNG Version

Note: only the latest version is supported
7.6.1

Currently TestNG instantiates listener objects multiple times and throws away duplicate instances if the listener has been wired in.
This becomes a problem for people who also use their listener objects to manage state.

This issue is to track this discrepancy in TestNG and ensure that listeners are instantiated ONLY if they are going to be wired in.

Please see this discussion for more context.

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

1 participant