Visitar URL original
Make Python test suite fail if no tests ran · Issue #98903 · python/cpython · GitHub
Skip to content

Make Python test suite fail if no tests ran #98903

Description

@vstinner

When the Python test suite is run with a typo in a test filename or a test method, it displays "NO TEST RUN" but the exit code is a success (exit code 0) and so the mistake can be easily missed. I propose to make the test suite fail with a non-zero exit code to highlight that something unusual happened.

Activity

  1. vstinner commented on Oct 31, 2022

    @vstinner
    MemberAuthor

    Non-zero exit code should also help automation of running the Python test suite, with git bisect for example.

  2. vstinner commented on Nov 2, 2022

    @vstinner
    MemberAuthor

    Fixed by c76db37

  3. added a commit that references this issue on Nov 2, 2022
  4. added 2 commits that reference this issue on Sep 2, 2023
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

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions