e01.org

Basis path testing

In software engineering, basis path testing, or structured testing, is a white box method for designing test cases. The method analyzes the control-flow graph of a program to find a set of linearly independent paths of execution. The method normally uses McCabe cyclomatic complexity to determine the number of linearly independent paths and then generates test cases for each path thus obtained. Basis path testing guarantees complete branch coverage (all edges of the control-flow graph), but achieves that without covering all possible paths of the control-flow graph the latter is usually too costly. Basis path testing has been widely used and studied.

In software engineering, basis path testing, or structured testing, is a white box method for designing test cases. The method analyzes the control-flow graph of a program to find a set of linearly independent paths of execution. The method normally uses McCabe cyclomatic complexity to determine the number of linearly independent paths and then generates test cases for each path thus obtained. Basis path testing guarantees complete branch coverage (all edges of the control-flow graph), but achieves that without covering all possible paths of the control-flow graph the latter is usually too costly. Basis path testing has been widely used and studied. ==See also== DD-path testing ==References== ==Further reading==

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Basis path testing". 1755337132. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1306187612

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy