-
Book Overview & Buying
-
Table Of Contents
Jasmine Cookbook
By :
Code coverage is used to determine which lines/pieces of code (or areas of a program) are not tested or exercised by a set of specs. Code coverage ensures the effectiveness of your specs/test suite, and not the quality of your product. However, if coverage is high (that is, between 90 percent and 100 percent), product quality will certainly be good. A program with high code coverage is tested thoroughly and has a lower chance of having production bugs as compared to a program with low code coverage. In other words, code coverage helps to determine whether Jasmine specs are sufficient for a specific feature/functionality or if there is a need to develop more specs in order to increase the code coverage.
To measure what percentage of code has been exercised by the specs/test suite, one or more coverage criteria/metrics are used. The major ones are statement coverage, function coverage, branch coverage, and condition coverage. To get more details about code coverage, you can visit...
Change the font size
Change margin width
Change background colour