Skip to content

Increase Argument Clinic test coverage #106368

@erlend-aasland

Description

@erlend-aasland
Contributor

The Argument Clinic test suite consists of three parts:

  • Lib/test/test_clinic.py: mostly parser tests
  • Lib/test/clinic.test: generated code, checked by test_clinic.py (ClinicExternalTest)
  • Modules/_testclinic.c: mostly converter tests (thanks, @colorfulappl!)

Test coverage is currently just above 80%, which is too low. I'd say we try to reach 90-something percent coverage.

Reminder: PRs for increased test coverage should be backported to all bugfix branches.

Linked PRs

Activity

erlend-aasland

erlend-aasland commented on Jul 3, 2023

@erlend-aasland
ContributorAuthor

Also: a side effect of good coverage, is that it can help identify unreachable paths in the code.

erlend-aasland

erlend-aasland commented on Jul 3, 2023

@erlend-aasland
ContributorAuthor

cc. @sobolevn, who I know enjoys increasing test coverage 📈

added a commit that references this issue on Jul 3, 2023

pythongh-106368: Increase Argument Clinic test coverage

afe91ca
added a commit that references this issue on Jul 3, 2023

gh-106368: Increase Argument Clinic test coverage (#106369)

7f4c812
added a commit that references this issue on Jul 3, 2023

pythongh-106368: Increase Argument Clinic test coverage (pythonGH-106369

added a commit that references this issue on Jul 3, 2023

pythongh-106368: Clean up Argument Clinic tests

2197527
added 3 commits that reference this issue on Jul 3, 2023

[3.11] pythongh-106368: Increase Argument Clinic test coverage (pytho…

2899599

[3.12] gh-106368: Increase Argument Clinic test coverage (GH-106369) (#…

ddff473

gh-106368: Clean up Argument Clinic tests (#106373)

3ee8dac

171 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @erlend-aasland@littlebutt

      Issue actions

        Increase Argument Clinic test coverage · Issue #106368 · python/cpython