GeezerVison is showing github.com — Increase Argument Clinic test coverage · Issue #106368 · python/cpython
Increase Argument Clinic test coverage #106368
Description
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 commented on Jul 3, 2023
ContributorAuthor
More actions
Also: a side effect of good coverage, is that it can help identify unreachable paths in the code.
erlend-aasland commented on Jul 3, 2023
ContributorAuthor
More actions
cc. @sobolevn, who I know enjoys increasing test coverage 📈
erlend-aasland commented on Aug 4, 2023
ContributorAuthor
More actions
We're now at 93% coverage.
added 2 commits that reference this issue
on Aug 4, 2023gh-106368: Argument clinic: improve coverage for `self.valid_line()` …
added 2 commits that reference this issue
on Aug 15, 2023gh-106368: Argument Clinic: Add tests for cloned functions with custo…
added 2 commits that reference this issue
on Aug 15, 2023gh-106368: Argument Clinic: Test that keyword params are disallowed i…
Metadata
Metadata
Development
No branches or pull requestsIssue actions