Jasmine Cookbook

More Information
  • 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

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.

  • A recipe-based approach to design and implement Jasmine specs for efficiently testing JavaScript jQuery, Ajax, 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
Page Count 276
Course Length 8 hours 16 minutes
ISBN 9781784397166
Date Of Publication 23 Apr 2015


Munish Sethi

Munish Sethi is a postgraduate in computer science and MBA in IT from SCDL. He has 18 years of industry experience and has a sound knowledge of test automation, test- and behavior-driven development, white box testing, big data testing, review techniques, test estimation, and requirement analysis. Currently, he is working with Impetus Infotech Pvt. Ltd. where he plays the role of test craftsman and automation architect. With his diverse experience, he helps engineering teams with deliveries and also with designing test solutions and formulating test strategies for his clients. He has also designed and implemented many automation frameworks (such as modular, hybrid, data-driven, keyword-driven, and page-object models) using Jasmine/Protractor, QTP, Selenium Web driver, Junit, TestNG, SOAPUI, Sikuli, Test Complete, and so on. He's very keen to explore new and upcoming tools and technologies.

He has worked with both product- and services-based organizations. Munish's Twitter handle is @munishksethi.