PacktLib: JavaScript Unit Testing

JavaScript Unit Testing

Credits

About the Author

About the Reviewer

www.PacktPub.com

Preface

Unit Testing JavaScript Applications

What unit testing is

Why we need unit testing

What Test-Driven Development (TDD) is

Complexities in testing JavaScript applications

Weather forecasting application

Summary

Jasmine

Configuration

Writing your first Jasmine test

The nested describe blocks

Jasmine matchers

Testing asynchronous (Ajax) JavaScript code

HTML fixtures

Testing the weather application

Summary

YUI Test

Writing your first YUI test

Assertions

Testing asynchronous (Ajax) JavaScript code

Testing the weather application

Automation and integration with build management tools

Summary

QUnit

Configuration

Writing your first QUnit test

Assertions

Testing asynchronous (Ajax) JavaScript code

Testing the weather application

Summary

JsTestDriver

Architecture

Configuration

Writing your first JSTD test

Assertions

Testing asynchronous (Ajax) JavaScript code

Testing the weather application

Integration with other JavaScript test frameworks

Integration with build management tools

Integration with the IDEs

Summary

Index