condition coverage in python

前端 未结 7 850
有刺的猬
有刺的猬 2021-02-07 04:53

Is there any tool/library that calculate percent of \"condition/decision coverage\" of python code. I found only coverage.py but it calculates only percent of \"statement covera

相关标签:
7条回答
  • 2021-02-07 05:24

    The very same maintainer of coverage.py has an article discussing a way to get coverage information at the bytecode level. The method is a bit kludgey: it involves re-assembling .pyc files with tweaked line numbers. However, it provides about as much granularity in coverage measurement as you could ask for.

    0 讨论(0)
提交回复
热议问题