[WEBINAR] The New Normal: Dealing with the Reality of an Unsecure World

Branch Coverage Testing

Definition - What does Branch Coverage Testing mean?

Branch coverage testing is a methodical type of testing which requires that all program branches or conditional states be tested at least once during a testing process.

Techopedia explains Branch Coverage Testing

In branch coverage testing, each different outcome from a code module is tested. For example, if the outcomes are binary, developers test both outcomes. Likewise, if there is a code function that tests a range of values, each of those valued outcomes are tested. If a function returns either a yes or a no value, the test must input each of these values and test the result.

By nature, branch coverage testing is different than other broader forms of testing. It represents a rigid conditional requirement that may not be entirely feasible in all cases. Some developers and others that talk about branch coverage testing suggest that a certain percentage of coverage is adequate, while others have noted that developers may work up two or three different testing strategies to ensure that they cover all code module branches - or as many as possible.

As a type of tactical testing, branch coverage testing is more of a metric used to gauge testing outcomes than a testing philosophy or broader-based testing strategy idea.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.