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 test coverage monitoring #520

Open
JelleZijlstra opened this issue Dec 13, 2024 · 1 comment
Open

Add test coverage monitoring #520

JelleZijlstra opened this issue Dec 13, 2024 · 1 comment

Comments

@JelleZijlstra
Copy link
Member

Getting typing-extensions to 100% test coverage seems like a realistic and useful goal. Doing this ensures that we have thorough tests and also gives more confidence when adding new code.

Contributions towards this goal are welcome. We should start with running a coverage tool to get a sense of how much coverage we're currently missing, then add tests to cover the missing bits, then set up CI so that it enforces 100% coverage. A complication might be that lots of code is version-specific: coverage computation should ideally sum across all supported versions of Python.

@AlexWaygood
Copy link
Member

The covdefaults coverage plugin might be useful for us. It allows you to suppress coverage calculations on a version branch only if you're running a specific Python version: https://github.com/asottile/covdefaults?tab=readme-ov-file#version-specific--pragma-no-cover

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

2 participants