Registry /
testing / robotframework-stacktrace
Robotframework-stacktrace is a specialized listener for Robot Framework designed to enhance debugging by printing a full stack trace to the console when a test failure occurs. It addresses a common pain point where standard Robot Framework output might not provide sufficient detail to quickly pinpoint the exact line of code causing a failure. The library currently supports Robot Framework versions 4.0 and higher, with its latest release being 0.4.1. It is actively maintained as a utility to improve test debugging workflows.
Install & Compatibility
Where this runs
tested against v0.4.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 23.9MB
glibcpy 3.10–3.920 runs
installs and imports cleanly · install 1.9s · import 0.000s · 24MB
22MB installed
● package 22MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
This library is used as a Robot Framework listener via the command line, not imported directly in Python code.
robot --listener RobotStackTracer <your_test_file.robot>
To use robotframework-stacktrace, execute your Robot Framework tests via the `robot` command, specifying `RobotStackTracer` as a listener using the `--listener` option. This will enable the stack trace output for any test failures.
# Create a simple Robot Framework test file (e.g., my_test.robot)
# my_test.robot
*** Settings ***
Library OperatingSystem
*** Test Cases ***
Example Failing Test
Log This test will fail
Fail Intentional Failure
# Run Robot Framework with the listener
# Make sure to install robotframework-stacktrace first: pip install robotframework-stacktrace
# In your terminal, navigate to the directory containing my_test.robot and run:
# robot --listener RobotStackTracer my_test.robot
# You should see a detailed stack trace in the console output upon failure.
Upgrade
Version history
Breaking-change detection hasn't run for this library yet.
Audit
Security & dependencies
CVE tracking and dependency tree are planned for a later release.