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.
pip install robotframework-stacktraceVerified import paths — ran on the pinned version, not inferred.
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.
Ensure your Robot Framework installation is version 4.0 or newer. Use `pip install --upgrade robotframework` to update if needed.
Upgrade to version 0.4.1 or newer to avoid these side-effects. `pip install --upgrade robotframework-stacktrace`
Use `robotframework-stacktrace` as a listener (e.g., `robot --listener RobotStackTracer ...`) to get detailed stack traces in your console output.