concept test harness in category javascript

appears as: test harness, test harnesses, A test harness
Node.js in Practice

This is an excerpt from Manning's book Node.js in Practice.

First, let’s consider what a test harness is. In Node, a test harness is a command-line script that you can run by typing the name of the script. At its most basic, it must run a group of test files and display any errors that occur. We don’t need anything particularly special to do that—a failed assertion will cause an exception to be thrown; otherwise the program will exit silently with a return code of 0.