Have a personal or library account? Click to login
Jasmine Cookbook Cover

Jasmine Cookbook

Over 35 recipes to design and develop Jasmine tests to produce world-class JavaScript applications

Paid access
|Sep 2025
Product purchase options

Key Features

    Book Description

    What you will learn

    • Develop JavaScript applications with Jasmine using the behaviordriven development (BDD) process
    • Apply custom matchers by enhancing your Jasmine tests to test specific features or functionality
    • Design Jasmine specs for jQuery and Ajax with HTML and JSON fixtures
    • Generate code coverage analysis for JavaScript code using Karma and Istanbul
    • Create Jasmine tests for CoffeeScript and AngularJS
    • Implement E2E (endtoend) Jasmine specs for JavaScript applications to simulate a realtime scenario

    Who this book is for

    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

    1. Getting Started with Jasmine Framework
    2. Jasmine with TDD and BDD Process
    3. Customize Matchers and Jasmine Functions
    4. Designing Specs from Requirement
    5. Jasmine Spies
    6. Jasmine with AJAX, jQuery, and Fixtures
    7. Code Coverage with Jasmine Tests
    8. Jasmine with Other tools
    9. Developing JavaScript Apps Using Jasmine - A Real Time Scenario
    PDF ISBN: 978-1-78439-328-1
    Publisher: Packt Publishing Limited
    Copyright owner: © 2015 Packt Publishing Limited
    Publication date: 2025
    Language: English
    Pages: 276