Testing

 

Beware of bugs in the above code; I have only proved it correct, not tried it.

 
 --Donald Ervin Knuth

Every system that is supposed to go into production needs to be evaluated against the real world situation. Reality can be a harsh thing, and it happens more often than not that something we expected to work perfectly fine does not work when we actually want to use it. So throughout the history of computer programming, developers have thought about how they could make sure that the software works, and at best, actually work as expected.

In 1994, Kent Beck wrote the SUnit test framework for Smalltalk and kicked off the modern age of unit testing. The idea was quite simple: automate the evaluation of code and make sure it fulfilled a certain ...

Get JavaScript Domain-Driven Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.