我见过测试覆盖率达95%的代码库每周都会发布严重bug。也见过覆盖率仅40%的代码库却极少出问题。
问题不在于数字本身,而在于对数字的执念。
覆盖率陷阱
下面这个测试能提高覆盖率,但抓不住任何问题:
如果测试的是错误的80%,那么80%的测试覆盖率毫无意义。以下是我对覆盖率的看法——不是追逐的数字,而是盲点的地图。
Part ofTesting & QA->我见过测试覆盖率达95%的代码库每周都会发布严重bug。也见过覆盖率仅40%的代码库却极少出问题。
问题不在于数字本身,而在于对数字的执念。
下面这个测试能提高覆盖率,但抓不住任何问题:
Reader route
article -> proof -> offer
cluster
Testing & QA
intent
Testing
route
next step
What to do with this
If this topic maps to a real business problem, keep reading the cluster, study the academy path, or route the work into a scoped engagement.
