Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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 Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783982844
Length 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

Task automation with GulpJS


Before talking about unit testing automation (that is the main objective of this chapter), we need to introduce another concept: task automation.

What do we really mean by the term task automation? Well, we need to talk about what we need to do when delivering a web application to production.

The one and only true objective of web development is to publish a fully functioning and optimized web application. In this regard, there are several well-known best practices that have to be respected, at least:

  • Source code quality verification: Using tools like JSLint or JSHint, we need to check the quality of our source code in search of possible style convention deficiencies as well as structural problems

  • Source file concatenation: We need to build a unique source code file in order to include a single script tag in the corresponding web page (remember that every script tag is a call to the web server, thus a delay in the page load process; it's important to reduce as much...

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
Banner background image