pytest-github-actions-annotate-failures icon indicating copy to clipboard operation
pytest-github-actions-annotate-failures copied to clipboard

Annotate warnings as well?

Open mjpieters opened this issue 3 years ago • 7 comments

Can warnings captured by pytest also be turned into annotations? I’m referring to the warnings output at the end of a pytest run.

Pytest offers a hook for such warnings. They could be turned into annotations using the warning workflow command.

mjpieters avatar Nov 23 '21 21:11 mjpieters

Looks like good. It would be better that we can suppress warning annotations with some options.

utgwkk avatar Dec 08 '21 12:12 utgwkk

Started a PR #68

edgarrmondragon avatar Feb 09 '23 01:02 edgarrmondragon

I would like to see this implemented. And the PR has been stale for nearly a year... and is fully functional, I pulled and tested it myself. Works as expected.

+1

Screenshot (Ran in a matrix, works great)

image

oliv10 avatar May 14 '24 18:05 oliv10

I would like to see this implemented. And the PR has been stale for nearly a year... and is fully functional, I pulled and tested it myself. Works as expected.

+1

Screenshot (Ran in a matrix, works great) image

@oliv10 thanks for giving it a try! Tests are failing for pytest 7.4.x on that PR, so I need to make some time to fix that. It's probably also worth adding tests for 8.x in a separate PR.

edgarrmondragon avatar May 15 '24 02:05 edgarrmondragon

@edgarrmondragon no problem! Just to make note for you, I used pytest 8.2.0 in the previous screenshot.

oliv10 avatar May 15 '24 13:05 oliv10

The bug (https://github.com/pytest-dev/pytest-github-actions-annotate-failures/issues/81 and more detail in https://github.com/pytest-dev/pytest-github-actions-annotate-failures/issues/76) only affects certain annotations.

henryiii avatar May 15 '24 19:05 henryiii

Still looking forward to this feature!

oliv10 avatar Jun 03 '24 20:06 oliv10