What can be alternative metrics to code coverage?

后端 未结 15 713
迷失自我
迷失自我 2021-01-30 10:00

Code coverage is propably the most controversial code metric. Some say, you have to reach 80% code coverage, other say, it\'s superficial and does not say anything about your te

15条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 10:20

    How about (lines of code)/(number of test cases)? Not extremely meaningful (since it depends on LOC), but at least it's easy to calculate.

    Another one could be (number of test cases)/(number of methods).

提交回复
热议问题