Instant Testing with QUnit

Dmitry Sheiko

  • 出版商: Packt Publishing
  • 出版日期: 2013-08-10
  • 售價: $1,270
  • 貴賓價: 9.5$1,207
  • 語言: 英文
  • 頁數: 64
  • 裝訂: Paperback
  • ISBN: 1783282177
  • ISBN-13: 9781783282173
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Employ QUnit to increase your efficiency when testing JavaScript code

Overview

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Learn about cross-browser testing with QUnit
  • Learn how to use popular QUnit plugins and develop your own plugins
  • Hands-on examples on all the essential QUnit methods

In Detail

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.

What you will learn from this book

  • 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

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. A concise guide full of step-by-step recipes to teach you how to perform automated testing using QUnit.

Who this book is written for

"Instant Testing with QUnit" is for anyone working with JavaScript who is looking for a powerful and easy-to-use testing framework. The reader does not need to know any particular framework, only the basic principles of JavaScript and HTML.