Skip to content

Mark the test run as failed for collection and fixture errors - #63

Merged
chrisguidry merged 1 commit into
mainfrom
failed-run-status
Nov 19, 2026
Merged

chrisguidry merged 1 commit into
mainfrom
failed-run-status

Conversation

@chrisguidry

Copy link
Copy Markdown
Owner

The test run span had the status ERROR only when a test's call failed. A run where a test module failed to import, or where a fixture raised in its setup or teardown, ended with the status OK even though pytest exited with a failure. The span now has the status ERROR for any failed collection report and any failed setup, call, or teardown report.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P7t1QcSqKZ51Ko2DSwvk1H

The `test run` span had the status ERROR only when a test's call
failed. A run where a test module failed to import, or where a fixture
raised in its setup or teardown, ended with the status OK even though
pytest exited with a failure. The span now has the status ERROR for any
failed collection report and any failed setup, call, or teardown report.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P7t1QcSqKZ51Ko2DSwvk1H
@chrisguidry
chrisguidry merged commit c3be184 into main Nov 19, 2026
11 checks passed
@chrisguidry
chrisguidry deleted the failed-run-status branch November 19, 2026 14:38
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.

1 participant