N.U.T.R.A — Node Unit Test Runner Auxiliary
The "nutra" module is a simple, extendable unit test runner for node.
Quickstart
Get the "nutra" module up and running with just a few steps.
1) Install Nutra:
npm install --save-dev nutra
Nutra recommends Node v4+, as lower versions of node are not being officially supported.
2) Install Preset:
Give this one a try, for now.
Nutra requires presets to be installed with NPM v3+ do to its reliance on a flat dependency tree.
3) Add Nutra to NPM Scripts:
// package.json ... "scripts": "test": "nutra --config ./nutra.config.js" ...
4) Run CLI:
npm run test
Support
Questions About Usage:
For questions about usage (i.e. configuration, plugin development, etc), please post them on StackOverflow and tag it with the keyword "nutra".
Issues:
For bugs and other unexpected behavior, please post them up on the issue section of this GitHub.
Usage:
CLI:
Provide a nutra configuration file:
nutra --config "path/to/nutra.config.js"
The "--config" argument is required Path is relative to the current working directory (cwd).
JS API:
const nutra = nutrastart
The "config" argument is required. Config path is relative to the current working directory (cwd).
Configuration Presets:
Configuration Anatomy:
// nutra.config.jsmodule { config}
Nutra Plugins:
Contributing
Pull requests are always welcome. In lieu of a formal styleguide, please:
- Take care to maintain the existing coding style.
- Add unit tests for any new or changed functionality.
Why?
I get a trill from reinventing a simpler, more efficient wheel.