python的代码覆盖率度量
coverage的Python项目详细描述
python的代码覆盖率测试。
py测量代码覆盖率,通常在测试执行期间。它使用 python标准中提供的代码分析工具和跟踪挂钩 库以确定哪些行是可执行的,哪些行已被执行。
Professional support for coverage.py is available as part of the Tidelift Subscription. Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools. |
coverage.py在许多版本的python上运行:
- cpython 2.6、2.7和3.3到beta 3.8。
- PyPy2 6.0和PyPy3 6.0。
- Jython 2.7.1,但不用于报告。
- IronPython2.7.7,但不用于报告。
文档位于Read the Docs。代码库和问题跟踪程序已打开 GitHub。
4.5中的new:配置程序插件。
4.4新增:可抑制警告,连续覆盖测量。
4.3中的新功能:html--skip-covered,sys.excepthook支持,tox.ini 支持。
4.2的新特性:更好地支持多处理和组合数据。
4.1的新特性:大大提高了分支覆盖率。
4.0中的新功能:--concurrency,非python文件的插件,setup.cfg 支持,–跳过覆盖,HTML过滤,50多个问题关闭。
开始
参见文档中的Quick Start section。
贡献
参见文档中的Contributing section。
安全性
若要报告安全漏洞,请使用Tidelift security contact。Tidelift将协调修复和披露。
许可证
根据Apache 2.0 License授权。有关详细信息,请参见NOTICE.txt。