6 =========== |
6 =========== |
7 |
7 |
8 Code coverage testing for Python. |
8 Code coverage testing for Python. |
9 |
9 |
10 | |license| |versions| |status| |
10 | |license| |versions| |status| |
11 | |test-status| |quality-status| |docs| |codecov| |
11 | |test-status| |quality-status| |docs| |metacov| |
12 | |kit| |downloads| |format| |repos| |
12 | |kit| |downloads| |format| |repos| |
13 | |stars| |forks| |contributors| |
13 | |stars| |forks| |contributors| |
14 | |tidelift| |twitter-coveragepy| |twitter-nedbat| |
14 | |tidelift| |twitter-coveragepy| |twitter-nedbat| |
15 |
15 |
16 Coverage.py measures code coverage, typically during test execution. It uses |
16 Coverage.py measures code coverage, typically during test execution. It uses |
17 the code analysis tools and tracing hooks provided in the Python standard |
17 the code analysis tools and tracing hooks provided in the Python standard |
18 library to determine which lines are executable, and which have been executed. |
18 library to determine which lines are executable, and which have been executed. |
19 |
19 |
20 Coverage.py runs on these versions of Python: |
20 Coverage.py runs on these versions of Python: |
21 |
21 |
22 * CPython 3.6 through 3.11. |
22 .. PYVERSIONS |
23 * PyPy3 7.3.7. |
23 |
|
24 * CPython 3.7 through 3.11.0a4. |
|
25 * PyPy3 7.3.8. |
24 |
26 |
25 Documentation is on `Read the Docs`_. Code repository and issue tracker are on |
27 Documentation is on `Read the Docs`_. Code repository and issue tracker are on |
26 `GitHub`_. |
28 `GitHub`_. |
27 |
29 |
28 .. _Read the Docs: https://coverage.readthedocs.io/ |
30 .. _Read the Docs: https://coverage.readthedocs.io/ |
29 .. _GitHub: https://github.com/nedbat/coveragepy |
31 .. _GitHub: https://github.com/nedbat/coveragepy |
30 |
32 |
31 |
33 |
32 **New in 6.x:** dropped support for Python 2.7 and 3.5; added support for 3.10 |
34 **New in 6.x:** dropped support for Python 2.7, 3.5, and 3.6; |
33 match/case statements. |
35 write data on SIGTERM; |
|
36 added support for 3.10 match/case statements. |
34 |
37 |
35 |
38 |
36 For Enterprise |
39 For Enterprise |
37 -------------- |
40 -------------- |
38 |
41 |
119 :target: https://pypi.org/project/coverage/ |
122 :target: https://pypi.org/project/coverage/ |
120 :alt: Package stability |
123 :alt: Package stability |
121 .. |license| image:: https://img.shields.io/pypi/l/coverage.svg |
124 .. |license| image:: https://img.shields.io/pypi/l/coverage.svg |
122 :target: https://pypi.org/project/coverage/ |
125 :target: https://pypi.org/project/coverage/ |
123 :alt: License |
126 :alt: License |
124 .. |codecov| image:: https://codecov.io/github/nedbat/coveragepy/coverage.svg?branch=master&precision=2 |
127 .. |metacov| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nedbat/8c6980f77988a327348f9b02bbaf67f5/raw/metacov.json |
125 :target: https://codecov.io/github/nedbat/coveragepy?branch=master |
128 :target: https://nedbat.github.io/coverage-reports/latest.html |
126 :alt: Coverage! |
129 :alt: Coverage reports |
127 .. |repos| image:: https://repology.org/badge/tiny-repos/python:coverage.svg |
130 .. |repos| image:: https://repology.org/badge/tiny-repos/python:coverage.svg |
128 :target: https://repology.org/project/python:coverage/versions |
131 :target: https://repology.org/project/python:coverage/versions |
129 :alt: Packaging status |
132 :alt: Packaging status |
130 .. |tidelift| image:: https://tidelift.com/badges/package/pypi/coverage |
133 .. |tidelift| image:: https://tidelift.com/badges/package/pypi/coverage |
131 :target: https://tidelift.com/subscription/pkg/pypi-coverage?utm_source=pypi-coverage&utm_medium=referral&utm_campaign=readme |
134 :target: https://tidelift.com/subscription/pkg/pypi-coverage?utm_source=pypi-coverage&utm_medium=referral&utm_campaign=readme |