feat: Add pytest error extractor for Python test output#136
Merged
Conversation
Adds a new pytest extractor plugin that parses Python pytest output into structured errors with file/line/message. Fixes false-positive where the jasmine extractor was matching pytest output at 90% confidence and reporting 0 errors despite exit code 1. - Detect pytest output at 95/90/85% confidence tiers - Parse FAILURES section (assertion errors with tracebacks) - Parse ERRORS section (collection/import errors) - Fallback to short test summary parsing - Add `.py::` to jasmine forbidden hints (belt-and-suspenders) - Add .gitignore patterns for TypeScript compilation artifacts - 12 tests built via TDD red-green-refactor cycles Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #136 +/- ##
==========================================
+ Coverage 85.57% 85.79% +0.22%
==========================================
Files 114 115 +1
Lines 14809 15068 +259
Branches 3187 3245 +58
==========================================
+ Hits 12673 12928 +255
- Misses 2136 2140 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
file:line:messageerrors for LLM consumption.gitignorepatterns for TypeScript compilation artifacts (*.d.ts,*.d.ts.map,*.js.map) that could leak outsidedist/Detection (3 confidence tiers)
platform ... -- Python X.Y.Z, pytest-X.Y.Zheadershort test summary info+.py::test pathsN passed, N failed) +.pypathsExtraction (3 parsing strategies)
Eprefixed lines andfile.py:NN:locationsTypeError: unsupported operand type(s) for |)FAILED/ERRORlines when detailed sections absentVerified against real-world output
Tested against
lfa-cc-marketplacewhere 3 pytest collection errors (Python 3.9 vs 3.10+str | Nonesyntax) were previously invisible — now correctly extracted with file/line/message.Test plan
pnpm validatepasses (all phases green)🤖 Generated with Claude Code