What can be alternative metrics to code coverage?

后端 未结 15 711
迷失自我
迷失自我 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:16

    As a rule of thumb, defect injection rates proportionally trail code yield and they both typically follow a Rayleigh distribution curve.
    At some point your defect detection rate will peak and then start to diminish.
    This apex represents 40% of discovered defects.
    Moving forward with simple regression analysis you can estimate how many defects remain in your product at any point following the peak.
    This is one component of Lawrence Putnam's model.

提交回复
热议问题