Skip to content

Add multiline error strings - #72

Closed
helpmefindaname wants to merge 5 commits into
pytest-dev:mainfrom
helpmefindaname:add_multiline_error_strings
Closed

helpmefindaname wants to merge 5 commits into
pytest-dev:mainfrom
helpmefindaname:add_multiline_error_strings

Conversation

@helpmefindaname

Copy link
Copy Markdown
Contributor

PytestPlugins like pytest-mypy pytest-flake8 or pytest-ruff create one test for each file and collect all errors of the file in a single result.

This PR handles the general output format of all <file>:<lineno>:<char>: <message> like results and splits it into multiple annotations per linenumber.

You can see a demonstration of this on this PR https://github.com/helpmefindaname/test-pytest-github-actions-annotate/pull/2/files (look at buggy_module/cli.py).

@helpmefindaname
helpmefindaname force-pushed the add_multiline_error_strings branch from 1b3e1f6 to c76bd7c Compare May 5, 2023 11:37
@helpmefindaname
helpmefindaname force-pushed the add_multiline_error_strings branch from a0a74de to 55310f5 Compare May 19, 2023 21:13
@ssbarnea ssbarnea added the bug Something isn't working label Mar 1, 2024
@henryiii
henryiii force-pushed the add_multiline_error_strings branch from fedafa8 to 1749131 Compare May 15, 2024 07:28
@edgarrmondragon

Copy link
Copy Markdown
Collaborator

@helpmefindaname can you rebase if you're still interested in moving forward with this PR?

@ssbarnea

ssbarnea commented Mar 2, 2026 •

Copy link
Copy Markdown
Member

@helpmefindaname Can you please rebase it?

@ssbarnea ssbarnea closed this Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants