package
Teeny-weeny test runner for Node.js
npm install hydroGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Teeny-weeny test runner for Node.js
Install hydro and any plugins you might want to use with NPM.
(Suggestions: install a basic test reporter, like
hydro-bdd or
hydro-tdd.)
npm install --save-dev hydro hydro-bddCreate a hydro.conf.js file in the root of your project.
var assert = require('assert');
module.exports = function(hydro) {
hydro.set({
attach: global,
suite: 'My test suite',
formatter: 'hydro-simple',
plugins: ['hydro-bdd'],
tests: ['./test/*.js'],
globals: { assert: assert }
});
}Write some tests in the directory you pointed to.
describe('A basic test', function() {
it('should allow for assertions', function() {
assert(true);
});
});Now run your test from the root directory of your project!
./node_modules/.bin/hydroThe MIT License (see LICENSE)
jakeluer
jake@alogicalparadox.com