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==
References
No reference rows published for this article.
Cite this article
MLA
"Basis path testing." encyclopegia.org, 2025, https://encyclopegia.org/wiki/basis-path-testing. Accessed 24 November 2026.
Chicago
"Basis path testing." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/basis-path-testing.
APA
encyclopegia.org. (2025). Basis path testing. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/basis-path-testing
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON