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 4 of 10

3.2.1

What's Changed
* replace `StaticKeyword` patch with a listener by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/211
* fix `BuiltIn().set_log_level` when running with xdist by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/213
* proper handling for when filtering the stack trace from an exception fails by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/214
* fix an issue where `pytest_runtest_protocol` hooks can potentially run multiple times by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/215
* fix exceptions appearing twice in the robot log when running `.robot` tests by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/216


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

3.2.0

What's Changed
* Add traceback ricing functionality to remove pytest and pytest_robotframework code from tracebacks in the robot log by KotlinIsland in https://github.com/DetachHead/pytest-robotframework/pull/196
* fix crash when running with full paths to multiple different tests by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/202
* add `AssertOptions` class to allow customizing how assertions are displayed in the robot log by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/199 & https://github.com/DetachHead/pytest-robotframework/pull/204
* Support ansi codes in the log by KotlinIsland & DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/205
* fix exceptions raised inside keywords not including the full trace by KotlinIsland & DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/207
* fix duplicate exceptions in log by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/209

New Contributors
* KotlinIsland made their first contribution in https://github.com/DetachHead/pytest-robotframework/pull/196

**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/3.1.1...3.2.0

3.1.1

What's Changed
* saved resolved paths on pytest items and robot suites to improve performance by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/193


**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/3.1.0...3.1.1

3.1.0

What's Changed
* Deprecate `listener` and `pre_rebot_modifier` decorators and make `RobotOptions` dict fully typed by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/190
* fix crash when disabling xdist with `-n 0` by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/192


**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/3.0.1...3.1.0

3.0.1

What's Changed
* fix crash when xdist is not installed by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/187
* fix no tests being run when working directory is in a different location to both the pytest config file and the tests by DetachHead in https://github.com/DetachHead/pytest-robotframework/pull/188


**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/3.0.0...3.0.1

3.0.0

🚀 xdist support
pytest-robotframework now supports running tests concurrently with [pytest-xdist](https://pypi.org/project/pytest-xdist/)!

when executing pytest with the `-n` argument, the plugin will launch a robot instance for each worker and automatically merge together the log files at the end.

âš  breaking changes - new ways to specify robot arguments
via the command line
robot options can now be specified as pytest cli arguments using the `--robot-*` prefix. the deprecated `--robotargs` argument has been removed
before

pytest --robotargs="--variable foo:bar --outputdir baz"

after

pytest --robot-variable foo:bar --robot-outputdir baz


this is much safer as it does not allow you to specify arguments that would interfere with the functionality of the plugin. if you need to use a robot argument that is not available with a `--robot-*` see [the config section of the documentation](https://github.com/DetachHead/pytest-robotframework#config) for the pytest equivalent.

programmatically
the `pytest_robot_modify_args` hook has been replaced with the `pytest_robot_modify_options` hook which allows you to modify the robot options as a dict instead of a list of arguments. the options are more complete as they include default values and any options that were changed with the `ROBOT_OPTIONS` environment variable.
before
py
def pytest_robot_modify_args(session: Session, args: list[str], collect_only: bool):
if not collect_only:
args.extend(["variable", "foo:bar"])

after
py
from pytest_robotframework import RobotOptions

def pytest_robot_modify_options(session: Session, options: RobotOptions):
if not session.config.option.collectonly:
options["variable"].append("foo:bar")


**Full Changelog**: https://github.com/DetachHead/pytest-robotframework/compare/2.5.2...3.0.0

Page 4 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.