Socket
Socket
Sign inDemoInstall

hydro

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydro

Teeny-weeny test runner for Node.js


Version published
Maintainers
4
Created
Source

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 or hydro-tdd.)

    npm install --save-dev hydro hydro-bdd
    
  2. Create 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 }
      });
    }
    
  3. Write some tests in the directory you pointed to.

    describe('A basic test', function() {
      it('should allow for assertions', function() {
        assert(true);
      });
    });
    
  4. Now run your test from the root directory of your project!

    ./node_modules/.bin/hydro
    

Authors

License

The MIT License (see LICENSE)

FAQs

Package last updated on 08 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc