Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Jasmine Cookbook
  • Table Of Contents Toc
Jasmine Cookbook

Jasmine Cookbook

By : Munish Kumar
4.3 (7)
close
close
Jasmine Cookbook

Jasmine Cookbook

4.3 (7)
By: Munish Kumar

Overview of this book

If you are a competent JavaScript developer who wants to design and implement tests using Jasmine in order to minimize bugs in the production environment, then this book is ideal for you. Some familiarity with unit testing and code coverage concepts such as branch coverage along with basic knowledge of Node.js, AngularJS, and CoffeeScript is required.
Table of Contents (11 chapters)
close
close
10
Index

Introduction


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...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Jasmine Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon