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

support library listeners #145

Open
DetachHead opened this issue Nov 14, 2023 · 1 comment
Open

support library listeners #145

DetachHead opened this issue Nov 14, 2023 · 1 comment

Comments

@DetachHead
Copy link
Owner

ROBOT_LIBRARY_LISTENERS variable doesn't work in python tests since modules are not imported by robot's module import machinery

@DetachHead
Copy link
Owner Author

maybe pytest hooks are better suited for this? maybe we should make a listener that exports pytest hooks for every listener event, then you can implement those hooks only in child conftest.py files

the downside is that hook functions are more annoying to use and less typesafe than listeners, since they dont use classes (pytest-dev/pytest#11300)

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

1 participant