Web App Testing Using Knockout.JS

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

Web App Testing Using Knockout.JS

This ebook is included in a Mapt subscription
Roberto Messora

Design, implement, and maintain a fully tested JavaScript web application using Knockout.JS
$0.00
$17.99
$29.99
$29.99p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

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