Pytest-robotframework

Latest version: v4.3.1

Safety actively analyzes 723144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 10

4.1.1

What's Changed

- fix robot attempting to load `None` as a listener in robot 6 (247)
- fix robot attempting to parse python files as robot files (247)

**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/4.1.0...4.1.1

4.1.0

What's Changed
- rewrite the python parser to support test suites with nested classes (201)


**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/4.0.3...4.1.0

4.0.3

What's Changed
* readme improvements by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/240
* better method to fix top level suite name when running with xdist by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/241


**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/4.0.2...4.0.3

4.0.2

What's Changed
* fix crash when running with full paths to multiple different tests from different files by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/236
* avoid running robot with no tests in xdist runs when it's not necessary by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/237


**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/4.0.1...4.0.2

4.0.1

What's Changed
* fix crash on pytest 8.1 by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/229
* when no items were collected, generate the empty robot log in the xdist master instead of the workers by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/230


**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/4.0.0...4.0.1

4.0.0

changes

- collection will now always run during the `pytest_collection` stage. this probably significantly improves compatibility with other pytest plugins (https://github.com/DetachHead/pytest-robotframework/pull/218)
- the deprecated `listener` and `pre_rebot_modifier` decorators have been removed (https://github.com/DetachHead/pytest-robotframework/pull/218)

**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/3.2.1...4.0.0

⚠️ breaking changes / migration guide

the deprecated `listener` and `pre_rebot_modifier` decorators have been removed.

listeners

before
py
conftest.py
listener
def Foo(ListenerV3):
...


after
py
conftest.py
from pytest_robotframework import RobotOptions

def Foo(ListenerV3):
...

def pytest_robot_modify_options(options: RobotOptions):
options["listener"].append(Foo())


pre-run modifiers

before
py
conftest.py
pre_run_modifier
def Foo(SuiteVisitor):
...


after
py
conftest.py
from pytest_robotframework import RobotOptions

def Foo(SuiteVisitor):
...

def pytest_robot_modify_options(options: RobotOptions):
options["prerunmodifier"].append(Foo())


why?

using the `pytest_robot_modify_options` may be more boilerplatey, but there are several benefits to this approach:
- it gives you far more control over when listeners/pre-run modifiers are enabled, and allows you to instantiate them yourself with different arguments
- it does not rely on global state to "register" them to be enabled when robotframework runs, which was flaky when running with xdist

Page 3 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.