GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add name property to testsuites element in generated JUnit XML · Issue #12736 · pytest-dev/pytest

Add name property to testsuites element in generated JUnit XML #12736

New issue
Copy link
New issue
Copy link
Closed
#13404
Closed
Add name property to testsuites element in generated JUnit XML#12736
#13404
Copy link
Labels
plugin: junitxmlrelated to the junitxml builtin plugin

Description

@joseph-sentry
joseph-sentry
opened on Aug 23, 2024
Issue body actions

What's the problem this feature will solve?

Jest and Vitest JUnit Reporters do this, they include: jest tests and vitest tests as the value of the testsuites element's name property.

Describe the solution you'd like

The JUnit XML generated by pytest should always include pytest tests as the value of the name property of the testsuites element.

It's my opinion that this property should not be customizable., there should be some static information in the JUnit that represents the fact that pytest generated this file.

Alternative Solutions

There isn't any way to set or customize that property right now.

Activity

  1. RonnyPfannschmidt commented on Aug 23, 2024

    @RonnyPfannschmidt
    RonnyPfannschmidt
    on Aug 23, 2024
    Member
    More actions

    Please reference a junitxml spec defining this attribute

  2. nicoddemus
    added
    status: needs informationreporter needs to provide more information; can be closed after 2 or more weeks of inactivity
    on Aug 26, 2024
  3. joseph-sentry commented on Aug 27, 2024

    @joseph-sentry
    joseph-sentry
    on Aug 27, 2024
    ContributorAuthor
    More actions

    Here's what I found:

    • link this spec doesn't even include the field
    • link this spec defines it as "the name of the entire test run"
    • link this spec defines it as "The label of the scan"

    Further here's an example JUnit file from the Jenkins JUnit plugin that is used in their tests that makes use of the property, which means that it's supported by Jenkins: link

    It doesn't seem well defined, however as i mentioned the jest and vitest reporters make the default of that property: "jest tests" and "vitest tests" but they allow it to be customizable.

  4. github-actions commented on Sep 11, 2024

    @github-actions
    github-actionsBot
    on Sep 11, 2024 – with GitHub Actions
    Contributor
    More actions

    This issue is stale because it has the status: needs information label and requested follow-up information was not provided for 14 days.

  5. github-actions
    added
    stale
    on Sep 11, 2024
  6. github-actions commented on Sep 18, 2024

    @github-actions
    github-actionsBot
    on Sep 18, 2024 – with GitHub Actions
    Contributor
    More actions

    This issue was closed because it has the status: needs information label and follow-up information has not been provided for 7 days since being marked as stale.

  7. github-actions
    closed this as not plannedon Sep 18, 2024
  8. nicoddemus
    reopened this on Sep 18, 2024
  9. nicoddemus commented on Sep 18, 2024

    @nicoddemus
    nicoddemus
    on Sep 18, 2024
    Member
    More actions

    Reopening as it was closed by the stalebot erroneously (more information was provided after all).

  10. nicoddemus
    added
    plugin: junitxmlrelated to the junitxml builtin plugin
    and removed
    status: needs informationreporter needs to provide more information; can be closed after 2 or more weeks of inactivity
    stale
    on Sep 18, 2024
  11. webknjaz
    added this to 📅 Procrastinating in public 😵‍💫on Jan 22, 2025
  12. webknjaz
    moved this to 🦉 Inclusion ⚖️ in 📅 Procrastinating in public 😵‍💫on Jan 22, 2025
  13. Alcares
    added a commit that references this issue on May 2, 2025

    added name attribute to testsuites tag in junitxml, issue n. pytest-d…

    f6246cf
  14. nicoddemus
    added a commit that references this issue on May 2, 2025

    Add `name` attribute to `testsuites` root tag in junitxml (#13404)

    This issue will close once commit 7746f4f is merged into the 'main' branch.
    7746f4f
  15. nicoddemus
    closed this as completedin #13404on May 2, 2025
  16. github-project-automation
    moved this from 🦉 Inclusion ⚖️ to 🌈 Done 🦄 in 📅 Procrastinating in public 😵‍💫on May 2, 2025
  17. luketainton
    added a commit that references this issue on Jan 5, 2026

    chore(deps): update dependency pytest to v9 (#305)

    4b75154
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

    plugin: junitxmlrelated to the junitxml builtin plugin

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.