Skip to content

Test the OpenTelemetry listener - #10

Open
crest42 wants to merge 1 commit into
trace_listenerfrom
listener_tests
Open

crest42 wants to merge 1 commit into
trace_listenerfrom
listener_tests

Conversation

@crest42

@crest42 crest42 commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Unit tests call the listener hooks with in-memory exporters to make sure the correct information is exported. Integration tests run real suites through Robot Framework.

@crest42
crest42 added this pull request to stack #11 November 18, 2026 17:28
@crest42
crest42 removed this pull request from stack #11 November 18, 2026 17:34
@crest42
crest42 added this pull request to stack #13 November 18, 2026 17:36
jherbel
jherbel previously approved these changes Nov 19, 2026
Comment thread tests/integration/test_robot_runs.py Resolved
Comment thread tests/conftest.py Resolved
tests/unit/test_listener.py calls the hooks directly with stand-ins for
the Robot Framework result and message objects and reads the in-memory
exporters. tests/integration/test_robot_runs.py runs real suites through
Robot Framework for what only it shows: the span tree, setup and
teardown types, Robot Framework times, name override and directory
targets, log records, control structure spans, nesting of a span
opened by another instrumentation, and an unreachable collector.

opentelemetry-test-utils resets the SDK globals between the robot runs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants