hydro

Teeny-weeny test runner for Node.js

  • hydro

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
hydro
910.10.110 years ago11 years agoMinified + gzip package size for hydro in KB

Readme

NPM
version Build Status
hydro
Teeny-weeny test runner for Node.js

Quick start guide

  1. Install hydro and any plugins you might want to use with NPM.
(Suggestions: install a basic test reporter, like
[`hydro-bdd`](https://github.com/hydrojs/hydro-bdd) or
[`hydro-tdd`](https://github.com/hydrojs/hydro-tdd).)

```bash
npm install --save-dev hydro hydro-bdd
```
  1. Create a hydro.conf.js file in the root of your project.
```javascript
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 }
  });
}
```
  1. Write some tests in the directory you pointed to.
```javascript
describe('A basic test', function() {
  it('should allow for assertions', function() {
    assert(true);
  });
});
```
  1. Now run your test from the root directory of your project!
```bash
./node_modules/.bin/hydro
```

Authors

License

The MIT License (see LICENSE)