Pages about TDD

JavaScript unit test framework, part 4 of 4

In the last part of this series, I add a pluggable output system to my JavaScript unit test framework, so that test results can be displayed nicely, or sent to a server for logging.

JavaScript unit test framework, part 3 of 4

Any mature unit test framework contains helper methods for validating or asserting requirements. In this part, I start adding some object-oriented test functions.

JavaScript unit test framework, part 2 of 4

My unit test framework in JavaScript is starting to shape up when I add support for asynchronous code, like timers, event handlers and CSS transitions.

JavaScript unit test framework, part 1 of 4

For test-driven development (TDD), having a working unit test framework is very useful. Here I start working on my own framework in JavaScript.