【发布时间】:2023-01-12 19:32:14
【问题描述】:
我有一个包含许多方法的类,我会定期使用命令对其进行测试
python3 -m pytest --doctest-modules --cov=yarsync --cov-report term-missing yarsync 测试
不幸的是,它会为整个类(模块)输出缺失的行,比如
yarsync/yarsync.py 1031 259 75% 60, 69-70, 77, 160-167, ...是否可以根据类方法拆分输出?我试过annotate,但这似乎是多余的(并且已经被开发人员劝阻了)。
【问题讨论】:
标签: pytest coverage.py