From the course: CISSP Cert Prep (2021): 6 Security Assessment and Testing

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: CISSP Cert Prep (2021): 6 Security Assessment and Testing

Start my 1-month free trial

Test coverage analysis

- [Instructor] Testing complex software is itself a complex task. Modern software has millions of lines of code and it's very difficult to ensure that developers are testing every possible path through all of that code. Test coverage analysis seeks to give developers a sense of how much of their code was evaluated during a series of tests. Test coverage is defined as the percentage of a piece of software that was evaluated during a given test. Now that definition probably raises more questions than answers. What do I mean by the percentage of a piece of software? Now I'm being deliberately vague here for a moment because there are many different ways to compute test coverage and we'll get to those 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…

Contents