Book Image

Using Node.js for UI Testing

By : Pedro Teixeira
Book Image

Using Node.js for UI Testing

By: Pedro Teixeira

Overview of this book

<p>Automating tests for your user interfaces has always been the holy grail of programming. Now, using Zombie.js and Mocha you can create and quickly run your tests, allowing you to test even small changes. Increase your confidence in the code and minimize the number of times you have to use a real browser while you develop.</p> <p>"Using Node.js for UI Testing" is a quick and thorough guide on how to automatically test your web app, keeping it rock solid and bug-free. You will learn how to simulate complex user behaviour and verify that your application behaves correctly.</p> <p>You will create a web app in Node.js that uses complex user interactions and AJAX; by the end you will be able to fully test it from the command-line. Then you will start creating the user interface tests for this application using Mocha as a framework and Zombie.js as a headless browser.</p> <p>You will also create a complete test suite, module by module, testing simple and complex user interactions.</p>
Table of Contents (15 chapters)

About the Reviewers

Ollie Bennett is a technical consultant based in London, with a passion for playing with the latest technologies. After completing a Master’s degree in Theoretical Physics, he focused his attention on Web development, and maintains a portfolio of websites. Node.js and other recent JavaScript advancements are forming an ever increasing part of his interests.

His personal website address is http://olliebennett.co.uk/.

David Mark Clements is a Web entrepreneur residing in Northern Ireland. From a very early age he was fascinated with programming and computers. He first learned BASIC on one of the many Ataris he had accumulated by the age of nine. He learned JavaScript at the age of 12, moving into Linux administration and PHP as a teenager.

Now (as a twenty something), he enjoys working with CSS and HTML, but most of all he enjoys JavaScript—both in the browser and using Node. He wrote Node Cookbook (Packt Publishing), a selection of recipes to help coders master the art of asynchronous server-side JavaScript using Node.

Professionally, David is a freelancer who builds responsive websites and web apps for both enterprise and non-governmental organizations, and offers JavaScript/Node training.

You can follow David on Twitter at @davidmarkclem.