Instant Testing with QUnit

This week I received a review copy of Instant Testing with QUnit a "How-to" book by author "Dmitry Sheiko". Being from the Packt [INSTANT] range it is a short, fast, focused guide aimed to teach readers how to master the art of effectively using QUnit for JavaScript unit testing.

If you are going to build any non trivial web applications with javascript, you will need to test your code. There are a lot of JavaScript unit testing libraries available and Dmitry Sheiko's book "Instant Testing with QUnit" is a practical book which shows you how to deploy QUnit and its plugins, to increase your efficiency when testing JavaScript code.

QUnit, developed by the jQuery team, is a powerful easy-to-use and flexible JavaScript unit testing framework which can be used to test any generic JavaScript code in the web browser. In the introductory chapters, the book begins by showing you how to set up the QUnit testing environment and getting acquainted with the QUnit framework.

It then introduces you the QUnit core assertion methods in addition to some assertion methods provided by QUnit plugins. The chapters in the book use real code samples to introduce you to QUnit testing. It's just a real shame that one of the first code examples the book uses, has a typo error in the javascript which makes you think twice whether or not you want to persevere with the code examples!

This book is definitely not a book for the novice, If you've never used QUnit before or are new to javascript testing you are advised to search the web for some basic introduction and tutorials on QUnit before you begin this book. For readers who use QUnit the book does have advanced sections on writing your own custom assertion plugins and running your QUnit tests from the command line.

Thanks to the guys at Packt Publishing I have two copies of the e-book to give away, if you are interested just tweet me @pedbad with your email and the first two who contact me will get instructions on how to get their copy :)

Tags: