Skip to content

Annotate warnings as well? #45

Closed

Description

@mjpieters

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.

Activity

  1. utgwkk commented on Dec 8, 2021

    @utgwkk
    Member

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

  2. edgarrmondragon commented on Feb 9, 2023

    @edgarrmondragon
    Collaborator

    Started a PR #68

  3. oliv10 commented on May 14, 2024

    @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
  4. edgarrmondragon commented on May 15, 2024

    @edgarrmondragon
    Collaborator

    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.

  5. oliv10 commented on May 15, 2024

    @oliv10

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

  6. henryiii commented on May 15, 2024

    @henryiii
    Contributor

    The bug (#81 and more detail in #76) only affects certain annotations.

  7. oliv10 commented on Jun 3, 2024

    @oliv10

    Still looking forward to this feature!

  8. BGannon2 commented on Oct 21, 2024

    @BGannon2

    +1 this came up in a discussion with our developers this week. Would be very nice to have!

  9. edgarrmondragon commented on Oct 22, 2024

    @edgarrmondragon
    Collaborator

    @BGannon2 please give #68 a try if you are able. I hope we can get a maintainer to review it soon.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions