Book Image

WEB APP TESTING USING KNOCKOUT.JS

By : Roberto Messora
Book Image

WEB APP TESTING USING KNOCKOUT.JS

By: Roberto Messora

Overview of this book

Table of Contents (11 chapters)

Chapter 3. The Jasmine Unit Testing Framework Explained

Web application testing is a complex topic because there are several types of testing from unit testing to integration testing, through several other categorizations that can be involved in a complete test strategy.

The question is where do we start? I think the best answer to this question is from the house foundations, where anything strong and solid should start. The main objective of this book is to explain web application testing using a JavaScript library that implements a well-known presentation design pattern (Model-View-ViewModel). In this scenario, the core of a testing strategy is definitely unit testing.

In this chapter, we will introduce Jasmine, a unit testing JavaScript library that uses a Behavior Driven Development (BDD) style to examine the various units and modules of the source code. In particular, we will use Version 2.0.

You will learn:

  • What is BDD and how we can think about testing this way

  • How Jasmine works and what...