condition coverage in python

前端 未结 7 853
有刺的猬
有刺的猬 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:12

    Parse and modify the AST is the right answer, IMHO. See this paper for a complete description of what you need to do: "Branch Coverage Made Easy for Arbitrary Languages"

    http://www.semanticdesigns.com/Company/Publications/TestCoverage.pdf

提交回复
热议问题