From the course: CompTIA CySA+ (CS0-002) Cert Prep: 4 Software and Systems Security

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Test coverage analysis

Test coverage analysis

From the course: CompTIA CySA+ (CS0-002) Cert Prep: 4 Software and Systems Security

Start my 1-month free trial

Test coverage analysis

- Testing complex software is itself a complex task. Modern software has millions of lines of code and it is very difficult to ensure the developers are testing every possible path through all of that code. Test coverage analysis seeks to give developers a sense of how much of the code was evaluated during a set of tests. Test coverage is defined as the percentage of a piece of software that was evaluated during a given test set. Now that definition probably raises more questions than it answers. What do I mean by the percentage of a piece of software? I'm being deliberately vague here for a moment because there are many different ways to compute test coverage and I'll get to them in a minute. In general you can compute test coverage using a simple formula. Divide the number of cases tested by the total possible number of cases. If there were 10,000 possible test cases and your testing evaluated 9,000 of them,…

Contents