Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在.coveragerc文件中放置一个设置[report]来忽略报告中具有 100% 测试覆盖率的文件?
.coveragerc
[report]
我发现最接近的是exclude_lines选项,但这仅适用于项目代码中的正则表达式模式,不适用于报告本身。
exclude_lines
我不相信。尝试提交Feature Request或编写这样的功能并提交Pull Request。
见: http: //nedbatchelder.com/code/coverage/config.html