pytest-cov:pytest的覆盖插件

时间:2021-05-03 14:25:06
【文件属性】:
文件名称:pytest-cov:pytest的覆盖插件
文件大小:62KB
文件格式:ZIP
更新时间:2021-05-03 14:25:06
python pytest Python 概述 docs 测试 包裹 该插件可生成覆盖率报告。 与仅使用coverage run相比,此插件有一些额外功能: 子流程支持:您可以在子流程中分叉或运行内容,而不会被大惊小怪。 Xdist支持:您可以使用pytest-xdist的所有功能,并且仍然可以覆盖。 一致的pytest行为。 如果运行coverage run -m pytest您的sys.path会稍有不同(CWD将包含在其中,与运行pytest时不同)。 Coverage软件包提供的所有功能都可以通过pytest-cov的命令行选项或Coverage的配置文件工作。 免费软件:MIT许可证 安装 用pip安装: pip install pytest-cov 要获得分布式测试支持,请安装pytest-xdist: pip install pytest-xdist 从古代pytest-cov升级 pytest-
【文件预览】:
pytest-cov-master
----MANIFEST.in(566B)
----.travis.yml(2KB)
----README.rst(5KB)
----.readthedocs.yml(244B)
----docs()
--------releasing.rst(1KB)
--------config.rst(3KB)
--------tox.rst(2KB)
--------spelling_wordlist.txt(109B)
--------conf.py(1KB)
--------subprocess-support.rst(5KB)
--------debuggers.rst(768B)
--------changelog.rst(30B)
--------contexts.rst(774B)
--------xdist.rst(3KB)
--------authors.rst(28B)
--------requirements.txt(70B)
--------plugins.rst(996B)
--------reporting.rst(3KB)
--------markers-fixtures.rst(804B)
--------readme.rst(27B)
--------index.rst(407B)
--------contributing.rst(33B)
----AUTHORS.rst(2KB)
----.github()
--------ISSUE_TEMPLATE()
----CONTRIBUTING.rst(3KB)
----tests()
--------helper.py(39B)
--------test_pytest_cov.py(64KB)
--------conftest.py(73B)
--------contextful.py(2KB)
----tox.ini(3KB)
----ci()
--------templates()
--------bootstrap.py(3KB)
--------appveyor-with-compiler.cmd(763B)
--------requirements.txt(62B)
----LICENSE(1KB)
----src()
--------pytest-cov.pth(376B)
--------pytest_cov()
--------pytest-cov.embed(425B)
----.appveyor.yml(1KB)
----setup.cfg(403B)
----examples()
--------README.rst(540B)
--------src-layout()
--------adhoc-layout()
----setup.py(5KB)
----.gitignore(666B)
----CHANGELOG.rst(14KB)
----.cookiecutterrc(2KB)
----.editorconfig(353B)
----.bumpversion.cfg(517B)
----.pre-commit-config.yaml(566B)

网友评论