Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a .coveragerc file to the CPython repository #106690

Closed
terryjreedy opened this issue Jul 12, 2023 · 1 comment
Closed

Add a .coveragerc file to the CPython repository #106690

terryjreedy opened this issue Jul 12, 2023 · 1 comment
Assignees

Comments

@terryjreedy
Copy link
Member

terryjreedy commented Jul 12, 2023

Check branches both ways and ignore code that should be excluded from coverage. This includes some special directives for IDLE.

This file is used by the coverage package. It can be used where it is, in the repository directory, or copied elsewhere, depending on how one runs coverage.

Linked PRs

@terryjreedy terryjreedy self-assigned this Jul 12, 2023
terryjreedy added a commit that referenced this issue Jul 13, 2023
The added file is the coverage default at some point in time + checking branches both ways + IDLE additions, labelled as such and somewhat designed to be unlikely to affect other files.  Located in the CPython repository directory, it can be used where it is or copied elsewhere, depending on how one runs coverage.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
@terryjreedy
Copy link
Member Author

It is not clear to me whether to backport, so I did not, but this could still be done. Closing now.

kgdiem pushed a commit to kgdiem/cpython that referenced this issue Jul 14, 2023
…thon#8150)

The added file is the coverage default at some point in time + checking branches both ways + IDLE additions, labelled as such and somewhat designed to be unlikely to affect other files.  Located in the CPython repository directory, it can be used where it is or copied elsewhere, depending on how one runs coverage.
---------

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant