Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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

Product type Book
Published in Nov 2014
Publisher
ISBN-13 9781783982844
Pages 154 pages
Edition 1st Edition
Languages
Author (1):
ROBERTO MESSORA ROBERTO MESSORA
Author Profile Icon ROBERTO MESSORA
ROBERTO MESSORA
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
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 €18.99/month. Cancel anytime