Search icon CANCEL
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

Unit testing automation with Karma (in GulpJS)


In the previous paragraph, we set up a build process the main objective of which is to verify our code quality and create a release version of the source code. At this point, we need to complete this process introducing unit testing.

One of the most important GulpJS plugins is the Karma integration. Karma (http://karma-runner.github.io/) is a testing environment that provides a series of useful features for developers, such as:

  • It runs tests on different kinds of browsers (not only different vendors, but also devices, such as phones and tablets) or using a PhantomJS instance

  • It supports a series of unit testing frameworks, such as Jasmine, QUnit, and Mocha

  • It can be integrated in several development environments, such as IDEs and browsers, for example, Jetbrains Webstorm or Google Chrome Developer Tools

  • It can be integrated into several continuous integration systems, for example, Jenkins, Travis, or Semaphore

The first two features are the most...

lock icon The rest of the chapter is locked
arrow left Previous Section
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 AU $24.99/month. Cancel anytime