Tag Info

New answers tagged

3

Just because the programming language abstracts the branches away into a boolean expression, doesn't mean they aren't there. If you looked at what actually gets executed, it looks like this: +-----------+ |is A true? +------------------+ +----+------+ | | | ...


1

In the example you use, there are four (4) possible paths of execution, and hence four (4) tests that must be performed. They may be enumerated as follows, where x denotes "don't care": 1xx: A is true, don't care about B and C - then path 01x: A is false, B is true, don't care about C - then path 001: A and B are false, C is true - then path 000: A, B, ...


9

No. That metric displays a fundamental misunderstanding of both testing and reliability. Testing can only ever prove the presence of bugs, but never the absence. A test suite demonstrates that a system is capable of functioning as expected (incl. known failure modes), but except in the most simplest cases can never prove that it will always work as ...



Top 50 recent answers are included