pytest-robotframework icon indicating copy to clipboard operation
pytest-robotframework copied to clipboard

support library listeners

Open DetachHead opened this issue 2 years ago • 1 comments

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

DetachHead avatar Nov 14 '23 07:11 DetachHead

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 (https://github.com/pytest-dev/pytest/issues/11300)

DetachHead avatar Feb 17 '24 02:02 DetachHead