2

Achieving branch coverage is possible but it doesn't mean complete testing.

  • What kind of defect you can find with this technique?
  • what kind of risk you could have with this technique?
  • what possible defect you could miss when you use only this technique?
1
  • can someone explain why I got one downvote ?
    – Emna Ayadi
    May 23, 2020 at 11:59

1 Answer 1

5

Achieving branch coverage is possible but it doesn't mean complete testing.

Indeed, no amount of fact-checking can achieve complete testing, because fact-checking is only one of the activities of testing, which also includes modeling, learning, experimentation, etc.

enter image description here

(Reference)

What kind of defect you can find with this technique?

Code and mutation coverage are heuristical validation methods for detecting missing automated fact-checks. So they don't find defects in the product per se because they don't spawn oracles. However, they can alert the developers that additional fact-checks may be created - and the process of creating such fact-checks will determine the defects that they can detect.

what kind of risk you could have with this technique?

As with any tool, the main risk is the misunderstanding of its goal and limit. Many teams use them for blind gatekeeping, others limit their testing to reaching some number on these metrics.

what possible defect you could miss when you use only this technique?

"Quality is value to some person", Gerald Weinberg.

Coverage methods talk only about the code that was implemented. Since quality is a subjective and dynamic aspect of someone's perception, no static and objective documentation (code) is able to correctly cover all possible aspects of quality. Additionally, since we have explicit and tacit knowledge, it's impossible to even explicitly describe the desires of a stakeholder in a particular moment.

This means that fact-checks are technically limited to detecting deviations from past and static facts we have found important/interesting. Anything outside this scope "escape" to production.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.