Jasmine Cookbook

Jasmine Cookbook Front Cover
5 Reviews
2015-04-30
265 pages

Book Description

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

About This Book

  • A recipe-based approach to design and implement Jasmine specs for efficiently JavaScript jQuery, , and Fixtures
  • Implement E2E (end-to-end) scenarios with Jasmine Spies and Custom Matchers
  • Develop Jasmine specs to validate the output of a method, object, or unit using data-driven approach

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 .js, AngularJS, and CoffeeScript is required.

What You Will Learn

  • Develop JavaScript applications with Jasmine using the behavior-driven 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 (end-to-end) Jasmine specs for JavaScript applications to simulate a real-time scenario

In Detail

Jasmine provides a rich set of libraries to design and develop tests for JavaScript applications. Its tests aim to run on any JavaScript-enabled platform and have easy-to-read syntax.

This book is a comprehensive guide to designing and developing Jasmine tests to produce world-class software. The recipes are elaborated using examples from a real-world application, which involves various aspects of designing and developing tests from simple to complex level. You will learn how to create tests for jQuery and Ajax, HTML and JSON fixtures, CoffeeScript, and AngularJS. By learning and applying the best practices throughout this book, you can deliver your applications with zero defects and ensure success for you and your clients.

Table of Contents

Chapter 1: Getting Started with Jasmine Framework
Chapter 2: Jasmine with TDD and BDD Processes
Customizing Matchers and Jasmine Chapter 3:
Chapter 4: Designing Specs from Requirement
Chapter 5: Jasmine Spies
Chapter 6: Jasmine with AJAX, jQuery, and Fixtures
Chapter 7: Code Coverage with Jasmine Tests
Chapter 8: Jasmine with Other Tools
Chapter 9: Developing JavaScript Apps Using Jasmine – a Real-time Scenario

Book Details

  • Title: Jasmine Cookbook
  • Author:
  • Length: 265 pages
  • Edition: 1
  • Language: English
  • Publisher:
  • Publication Date: 2015-04-30
  • ISBN-10: 1784397164
  • ISBN-13: 9781784397166

How to Download? Report Dead Links & Get a Copy