Question: Write a C/C++ program to compute the following coverage criteria.The coverage information can be collected by using a UNIX tool called gcov. Total Coverage prioritization
Write a C/C++ program to compute the following coverage criteria.The coverage information can be collected by using a UNIX tool called gcov.
Total Coverage prioritization -Prioritize test cases according to the total number of statements/branches they cover simply by sorting them in order of their total statement/branch coverage.
Here are some useful but older links for the usage of gcov: Monitoring Statement Coverage with gcov : https://www.cs.odu.edu/~zeil/cs333/website-s12/Lectures/wbtesting/pages/gcov.html Monitoring Branch Coverage with gcov :https://www.cs.odu.edu/~zeil/cs333/website-s12/Lectures/wbtesting/pages/gcov-branch.html
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
