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| |codecov| |
12 | |kit| |format| |repos| |downloads| |
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 many versions of Python: |
20 Coverage.py runs on these versions of Python: |
21 |
21 |
22 * CPython 2.7. |
22 * CPython 3.6 through 3.11. |
23 * CPython 3.5 through 3.10 alpha. |
23 * PyPy3 7.3.7. |
24 * PyPy2 7.3.3 and PyPy3 7.3.3. |
|
25 |
24 |
26 Documentation is on `Read the Docs`_. Code repository and issue tracker are on |
25 Documentation is on `Read the Docs`_. Code repository and issue tracker are on |
27 `GitHub`_. |
26 `GitHub`_. |
28 |
27 |
29 .. _Read the Docs: https://coverage.readthedocs.io/ |
28 .. _Read the Docs: https://coverage.readthedocs.io/ |
30 .. _GitHub: https://github.com/nedbat/coveragepy |
29 .. _GitHub: https://github.com/nedbat/coveragepy |
31 |
30 |
32 |
31 |
33 **New in 5.x:** SQLite data storage, JSON report, contexts, relative filenames, |
32 **New in 6.x:** dropped support for Python 2.7 and 3.5; added support for 3.10 |
34 dropped support for Python 2.6, 3.3 and 3.4. |
33 match/case statements. |
35 |
34 |
36 |
35 |
37 For Enterprise |
36 For Enterprise |
38 -------------- |
37 -------------- |
39 |
38 |
102 :target: https://github.com/nedbat/coveragepy/actions/workflows/quality.yml |
101 :target: https://github.com/nedbat/coveragepy/actions/workflows/quality.yml |
103 :alt: Quality check status |
102 :alt: Quality check status |
104 .. |docs| image:: https://readthedocs.org/projects/coverage/badge/?version=latest&style=flat |
103 .. |docs| image:: https://readthedocs.org/projects/coverage/badge/?version=latest&style=flat |
105 :target: https://coverage.readthedocs.io/ |
104 :target: https://coverage.readthedocs.io/ |
106 :alt: Documentation |
105 :alt: Documentation |
107 .. |reqs| image:: https://requires.io/github/nedbat/coveragepy/requirements.svg?branch=master |
|
108 :target: https://requires.io/github/nedbat/coveragepy/requirements/?branch=master |
|
109 :alt: Requirements status |
|
110 .. |kit| image:: https://badge.fury.io/py/coverage.svg |
106 .. |kit| image:: https://badge.fury.io/py/coverage.svg |
111 :target: https://pypi.org/project/coverage/ |
107 :target: https://pypi.org/project/coverage/ |
112 :alt: PyPI status |
108 :alt: PyPI status |
113 .. |format| image:: https://img.shields.io/pypi/format/coverage.svg |
109 .. |format| image:: https://img.shields.io/pypi/format/coverage.svg |
114 :target: https://pypi.org/project/coverage/ |
110 :target: https://pypi.org/project/coverage/ |
127 :alt: License |
123 :alt: License |
128 .. |codecov| image:: https://codecov.io/github/nedbat/coveragepy/coverage.svg?branch=master&precision=2 |
124 .. |codecov| image:: https://codecov.io/github/nedbat/coveragepy/coverage.svg?branch=master&precision=2 |
129 :target: https://codecov.io/github/nedbat/coveragepy?branch=master |
125 :target: https://codecov.io/github/nedbat/coveragepy?branch=master |
130 :alt: Coverage! |
126 :alt: Coverage! |
131 .. |repos| image:: https://repology.org/badge/tiny-repos/python:coverage.svg |
127 .. |repos| image:: https://repology.org/badge/tiny-repos/python:coverage.svg |
132 :target: https://repology.org/metapackage/python:coverage/versions |
128 :target: https://repology.org/project/python:coverage/versions |
133 :alt: Packaging status |
129 :alt: Packaging status |
134 .. |tidelift| image:: https://tidelift.com/badges/package/pypi/coverage |
130 .. |tidelift| image:: https://tidelift.com/badges/package/pypi/coverage |
135 :target: https://tidelift.com/subscription/pkg/pypi-coverage?utm_source=pypi-coverage&utm_medium=referral&utm_campaign=readme |
131 :target: https://tidelift.com/subscription/pkg/pypi-coverage?utm_source=pypi-coverage&utm_medium=referral&utm_campaign=readme |
136 :alt: Tidelift |
132 :alt: Tidelift |
137 .. |stars| image:: https://img.shields.io/github/stars/nedbat/coveragepy.svg?logo=github |
133 .. |stars| image:: https://img.shields.io/github/stars/nedbat/coveragepy.svg?logo=github |