Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WEB APP TESTING USING KNOCKOUT.JS

You're reading from   WEB APP TESTING USING KNOCKOUT.JS Design, implement, and maintain a fully tested JavaScript web application using Knockout.JS

Arrow left icon
Product type Book
Published in Nov 2014
Publisher
ISBN-13 9781783982844
Pages 154 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
ROBERTO MESSORA ROBERTO MESSORA
Author Profile Icon ROBERTO MESSORA
ROBERTO MESSORA
Arrow right icon
View More author details
Toc

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime