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
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
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

Unit testing


In the previous sections, we made many important considerations about solution architecture and structure, and code implementation using design principles and patterns, keeping in mind the web application testing. Now it's time to verify how we can test our application written in this way.

In the following section, we will present a couple of examples related to the My Todo application, which are meaningful in our context. They show why we decided to follow some specific design directives.

Integration testing

External libraries encapsulation is a perfect strategy to test an application service behavior. The objective of integration testing is to verify that our class behaves correctly using the underlying third-party library.

We don't have to test that the external library works correctly, we need to verify that our service API is well designed and works properly in collaboration with the library itself. In this context, we talk about integration testing because we need to run tests...

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 $19.99/month. Cancel anytime