Test Coverage Leading You Astray?
An anonymous reader writes "Are your test coverage measurements leading you astray? Test coverage tools bring valuable depth to unit testing, but they're often misused. This article takes a closer look at what the numbers on the coverage report really mean, as well as what they don't. It then suggests three ways you can use your coverage to ensure code quality early and often."
"I'd love to hear from anyone who can recommend test coverage tools for C..."
See http://www.polyspace.com/
Here is a list of testing frameworks for several languages.
http://c2.com/cgi/wiki?TestingFramework
G.
Just executing a line of code or a branch (whilst running a test) does not imply that you are testing that code.
Paid Q&A/Research
Note that DO-178B requires MCDC (Modified Condition Decision Coverage) for level A software (check DO178B page 74).
MCDC requires that "every point of entry and exit in the program has been invoked at least once, every condition in a decision in the program has taken all possible outcomes at least once, every decision in the program has taken all possible outcomes at least once, and each condition in a decision has been shown to independently affect that decision's outcome. A condition is shown to independently affect a decision's outcome by varying just that condition while holding fixed all other possible conditions" (Miller and Chilenski).