How does cyclomatic complexity assist in white-box testing?
- Assesses risk in code logic
- Counts number of defects
- Determines code coverage needs
- Measures code readability
Cyclomatic complexity, introduced by Thomas McCabe, quantifies the complexity of a program by calculating the number of linearly independent paths through the source code. A higher cyclomatic value indicates a complex program with many branches, which may require more extensive testing to ensure each path is evaluated. It aids testers in assessing risks associated with the intricate logic of the code.
Loading...
Related Quiz
- Feedback and bugs reported during the _______ testing phase are crucial for improving the software quality before its official release.
- In white-box testing, what does the term "coverage" typically refer to?
- Which document provides a detailed approach to the scope, resources, and schedule of the intended test activities?
- During which phase of the STLC is the traceability matrix prepared?
- Which SDLC model involves continuous iterations of development and testing?