Web App Testing Using Knockout.JS

Design, implement, and maintain a fully tested JavaScript web application using Knockout.JS
Preview in Mapt

Web App Testing Using Knockout.JS

Roberto Messora

Design, implement, and maintain a fully tested JavaScript web application using Knockout.JS
Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99 p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Web App Testing Using Knockout.JS Book Cover
Web App Testing Using Knockout.JS
$ 17.99
$ 12.60
Mastering Windows Penetration Testing Book Cover
Mastering Windows Penetration Testing
$ 39.99
$ 28.00
Buy 2 for $30.10
Save $27.88
Add to Cart

Book Details

ISBN 139781783982844
Paperback154 pages

Book Description

As modern web applications grow in complexity and features, developers need tools and frameworks to deliver and maintain solutions with high quality standards. Knockout.JS is an emerging JavaScript presentation framework that promotes a solid solution design in combination with Jasmine, a well-known unit testing library. They both ensure rapid development and maintainability over time, and modification of requirements, reducing errors and addressing expected functionalities.

This book is a great starting point to meet all the most important concepts and frameworks involved in modern web application production. Every chapter sequentially introduces a library or a tool as a specific building block of the entire environment, proposing concrete examples and development considerations. By the end of this book, you will have a solid direction to follow when developing a web application, and you will also collect new hints and ideas to improve the delivery process of web applications.

Table of Contents

Chapter 1: Web Application Testing in the Modern Web
Software testing
The modern Web
Escaping from the jQuery-style development
Presentation design patterns
Summary
Chapter 2: The Knockout.JS UI Framework Explained
Hello Knockout.JS
Automatic synchronization between View and ViewModel
The ViewModel in detail
Data-binding in detail
Summary
Chapter 3: The Jasmine Unit Testing Framework Explained
Unit testing style
Hello Jasmine
Suites and specifications
Setup and teardown
Expectations and matchers
Spies
Testing asynchronous code
Summary
Chapter 4: Unit Testing Strategies
My Todo sample application
The solution structure
Idiomatic JavaScript patterns
MVVM and unit testing
The My Todo web application
Unit testing
Summary
Chapter 5: Setting Up an Effective Testing Environment
The NodeJS ecosystem
Task automation with GulpJS
Unit testing automation with Karma (in GulpJS)
User interface testing with PhantomJS
Summary

What You Will Learn

  • Introduce and use Knockout.JS in a JavaScript web application as a presentation framework
  • Design a JavaScript web application using the well-known Model-View-ViewModel presentation pattern
  • Set up a simple testing environment with Jasmine
  • Unit test a JavaScript web application using the Behavior Driven Development approach
  • Adopt the correct development strategies to obtain the best results in terms of unit testing
  • Install and set up an automated testing environment using Node.JS and Karma
  • Execute unit testing and code coverage on development and minified production code

Authors

Table of Contents

Chapter 1: Web Application Testing in the Modern Web
Software testing
The modern Web
Escaping from the jQuery-style development
Presentation design patterns
Summary
Chapter 2: The Knockout.JS UI Framework Explained
Hello Knockout.JS
Automatic synchronization between View and ViewModel
The ViewModel in detail
Data-binding in detail
Summary
Chapter 3: The Jasmine Unit Testing Framework Explained
Unit testing style
Hello Jasmine
Suites and specifications
Setup and teardown
Expectations and matchers
Spies
Testing asynchronous code
Summary
Chapter 4: Unit Testing Strategies
My Todo sample application
The solution structure
Idiomatic JavaScript patterns
MVVM and unit testing
The My Todo web application
Unit testing
Summary
Chapter 5: Setting Up an Effective Testing Environment
The NodeJS ecosystem
Task automation with GulpJS
Unit testing automation with Karma (in GulpJS)
User interface testing with PhantomJS
Summary

Book Details

ISBN 139781783982844
Paperback154 pages
Read More

Read More Reviews

Recommended for You

KnockoutJS by Example Book Cover
KnockoutJS by Example
$ 35.99
$ 25.20
KnockoutJS Essentials Book Cover
KnockoutJS Essentials
$ 23.99
$ 16.80
GitLab Cookbook Book Cover
GitLab Cookbook
$ 17.99
$ 12.60
Responsive Design High Performance Book Cover
Responsive Design High Performance
$ 23.99
$ 16.80
JavaScript JSON Cookbook Book Cover
JavaScript JSON Cookbook
$ 35.99
$ 25.20
NW.js Essentials Book Cover
NW.js Essentials
$ 23.99
$ 16.80