Recall & Review
beginner
What is test coverage in software testing?
Test coverage measures how much of the software's code or features are tested by the test cases. It helps find untested parts.
Click to reveal answer
beginner
Name two common types of test coverage metrics.
Two common types are code coverage (which checks how much code is tested) and requirement coverage (which checks how many requirements are tested).
Click to reveal answer
intermediate
What does statement coverage measure?
Statement coverage measures the percentage of executable statements in the code that have been run by tests.
Click to reveal answer
intermediate
Why is 100% test coverage not always enough?
Because tests might run code but not check if it works correctly. Also, some bugs happen in combinations or unexpected inputs not covered by tests.
Click to reveal answer
intermediate
What is branch coverage and why is it important?
Branch coverage measures if every possible branch (like if-else branches) in the code has been tested. It helps find missing tests for decision points.
Click to reveal answer
Which test coverage metric measures the percentage of code lines executed by tests?
✗ Incorrect
Statement coverage counts how many code statements are run during testing.
What does requirement coverage focus on?
✗ Incorrect
Requirement coverage checks if all specified user needs are tested.
Why might 100% code coverage still miss bugs?
✗ Incorrect
Running code doesn't guarantee the test checks if the result is correct.
Branch coverage ensures testing of:
✗ Incorrect
Branch coverage tests every possible decision path in the code.
Which metric helps identify untested requirements?
✗ Incorrect
Requirement coverage tracks which requirements have test cases.
Explain what test coverage metrics are and why they matter in software testing.
Think about how much of the software is tested.
You got /3 concepts.
Describe the difference between statement coverage and branch coverage.
One counts lines, the other counts decision points.
You got /3 concepts.