Using with Node.js

The YUI Test standalone library is fully capable of being run on Node.js.

Install with npm

If you're using npm, you can install the command line interface via:

npm install yuitest

Once installed, you can pass both individual JavaScript files and entire directories on the command line. If a directory is entered on the command line, all JavaScript files in that directory are assumed to contain tests. This also searches the directory recursively to find all JavaScript files in all subdirectories.