标签: python-3.x code-coverage pytest coverage.py
我想为pytest创建一个测试,以检测某些分支的代码覆盖率是否已超出一定数量。
我知道pytest-cov可以在pytest运行时运行覆盖率测试,但是我不知道如何检查覆盖率是否已降低。