📖 What is Branch Coverage?

The percentage of branches of control flow (such as true and false outcomes of an IF statement) that have been exercised by a test suite. It is calculated by dividing the number of executed branches by the total number of branches.

🥋 Sensei Says:

"Exam tip: 100% branch coverage ALWAYS guarantees 100% statement coverage. It is stronger than statement coverage."

📚 Certification: Certified Tester Foundation Level (CTFL-v4.0)

🔑 What are the Key Concepts of Branch Coverage?

  • ▸ Percentage of executed branches
  • ▸ Guarantees statement coverage
  • ▸ Tests true and false outcomes
  • ▸ Calculated as executed / total branches

🎯 How does Branch Coverage appear on the CTFL-v4.0 Exam?

Calculate branch coverage from a code snippet.

Find the minimum test cases for 100% branch coverage.

Compare branch coverage to statement coverage.

❓ Frequently Asked Questions

Does 100% branch coverage guarantee 100% statement coverage?

Yes, always.


What is a branch?

A possible outcome of a decision point, like True or False.

Related Terms from Certified Tester Foundation Level

📝 Related Study Guides

Study Guide 10 min read

How to Pass ISTQB CTFL v4.0 on Your First Try

To pass the ISTQB CTFL v4.0 on your first try, focus heavily on Chapter 4 (Test Analysis and Design), which accounts for 27.5% of the exam. Combine the official syllabus with high-volume practice exams, aiming for a consistent 80% score. Dedicate 4-6 weeks of study, prioritizing active recall over passive reading.

Deep Dive 10 min read

Equivalence Partitioning vs Boundary Value Analysis: ISTQB

Equivalence Partitioning (EP) divides input data into groups that should be processed identically, reducing test cases by testing one representative value per group. Boundary Value Analysis (BVA) complements this by testing the edges of these partitions, where defects frequently occur, ensuring the system handles limits and transitions correctly.

Study Guide 8 min read

What is Software Testing? ISTQB CTFL v4.0 Chapter 1 Deep Dive

Software testing is a comprehensive process that involves both static and dynamic activities designed to evaluate software quality. It aims to find defects, verify requirements, build confidence in the system, and provide critical information to stakeholders for decision-making.

🧠

Test Your Knowledge

Think you understand Branch Coverage? Put it to the test with our practice exam.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium