Skip to content

pytest JUnit XML deprecation warning (before pytest 6.0) #10673

Closed

Description

Initially reported in #10658:

Running tests with pytests shows the PytestDeprecationWarning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0. Add 'junit_family=xunit1' to your pytest.ini file to keep the current format in future versions of pytest and silence this warning.

We add the --junitxml=<path/to/a/temp/xml/file> argument to our pytest command, so we should handle this warning instead of the users.

Activity

  1. added
    needs spikeLabel for issues that need investigation before they can be worked on.
    importantIssue identified as high-priority
    and removed
    triage-neededNeeds assignment to the proper sub-team
    on Mar 23, 2020
  2. bschnurr commented on Apr 7, 2020

    @bschnurr
    Member

    try adding this to your commandline
    -o junit_family=xunit1

  3. ghost removed
    needs spikeLabel for issues that need investigation before they can be worked on.
    on Jun 10, 2020
  4. locked as resolved and limited conversation to collaborators on Oct 15, 2021
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

    area-testingfeature-requestRequest for new features or functionalityimportantIssue identified as high-priority

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions