Instant Testing with QUnit

Employ QUnit to increase your efficiency when testing JavaScript code
Preview in Mapt

Instant Testing with QUnit

Dmitry Sheiko

Employ QUnit to increase your efficiency when testing JavaScript code

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$5.00
RRP $19.99
Save 74%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$5.00
$29.99 p/m after trial
RRP $19.99
Subscription
eBook
Start 14 Day Trial

Frequently bought together


Instant Testing with QUnit Book Cover
Instant Testing with QUnit
$ 19.99
$ 5.00
Instant Mock Testing with PowerMock Book Cover
Instant Mock Testing with PowerMock
$ 14.99
$ 5.00
Buy 2 for $10.00
Save $24.98
Add to Cart

Book Details

ISBN 139781783282173
Paperback64 pages

Book Description

Automated testing is a significant part of agile development. QUnit is widely used in the jQuery Project for testing jQuery, jQuery UI, and jQuery Mobile; it can also be used to test any generic JavaScript code. As for JavaScript testing in particular, QUnit is a good choice for a framework as users can grasp the basics in a short span of time. The framework is a leading tool for unit and acceptance testing and can be used in conjunction with a wide range of third-party software. Instant Testing with QUnit covers all the essentials of QUnit and explains how you can use the framework in combination with other tools to improve your development process.

"Instant Testing with QUnit" is a hands-on guide that will help you achieve beneficial automated testing with QUnit and its plugins. This book also shows you how to engage QUnit for automated cross-browser testing and utilize it in conjunction with development automation and Continuous Integration tools.

"Instant Testing with QUnit" provides a comprehensive look into QUnit essentials and shows how you can benefit from the framework in conjunction with other tools. You will start by considering QUnit fundamentals before learning how QUnit can be used for functional testing and cross-browser automated testing with the Bunyip tool. You will also walk through a tutorial on popular QUnit plugins and then write one of your own. By the end of Instant Testing with QUnit, you will have learned how to run QUnit in the command line and how to set up the Jenkins CI server and make it perform QUnit tests.

Table of Contents

Chapter 1: Instant Testing with QUnit
Setting up QUnit (Simple)
Testing assertions (Simple)
Writing a custom assertion plugin (Advanced)
Testing exceptions (Medium)
Testing asynchronous calls (Medium)
Organizing test cases (Simple)
Using a shared setup (Medium)
Testing user actions (Medium)
Running Qnit in the console (Advanced)
Cross-browser-distributed testing (Advanced)
Building a web project (Advanced)
QUnit and CI – setting up Jenkins (Advanced)

What You Will Learn

  • Set up and start working with QUnit
  • Use QUnit assertion methods, exception handlers, test grouping functions, and shared setup
  • Test user actions and synchronous calls
  • Run QUnit tests in a console
  • Run automated cross-browser tests with QUnit and Bunyip
  • Include QUnit tests in Apache Ant build script
  • Set up Jenkins and run QUnit tests

Authors

Table of Contents

Chapter 1: Instant Testing with QUnit
Setting up QUnit (Simple)
Testing assertions (Simple)
Writing a custom assertion plugin (Advanced)
Testing exceptions (Medium)
Testing asynchronous calls (Medium)
Organizing test cases (Simple)
Using a shared setup (Medium)
Testing user actions (Medium)
Running Qnit in the console (Advanced)
Cross-browser-distributed testing (Advanced)
Building a web project (Advanced)
QUnit and CI – setting up Jenkins (Advanced)

Book Details

ISBN 139781783282173
Paperback64 pages
Read More

Read More Reviews

Recommended for You

Instant Mock Testing with PowerMock Book Cover
Instant Mock Testing with PowerMock
$ 14.99
$ 5.00
Instant HTML5 Fonts and Typography Book Cover
Instant HTML5 Fonts and Typography
$ 12.99
$ 5.00
Instant Testing with CasperJS Book Cover
Instant Testing with CasperJS
$ 14.99
$ 5.00
Instant Google Map Maker Starter Book Cover
Instant Google Map Maker Starter
$ 9.99
$ 5.00
Google Maps JavaScript API Cookbook Book Cover
Google Maps JavaScript API Cookbook
$ 26.99
$ 5.00
Instant Penetration Testing: Setting Up a Test Lab How-to Book Cover
Instant Penetration Testing: Setting Up a Test Lab How-to
$ 14.99
$ 5.00