node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

easy-test

A command line tool for generating mocha test scaffolds

Easy Test

A command line tool for generating mocha test scaffolds with chai.

npm install easy-test

There is currently only one command and it creates a test scaffold within the test directory of your project

node_modules/.bin/ezt test MyTest

The above command will create

|- test
||- my-test.js

The contents of my-test.js will be

var chai = require('chai');
var expect = chai.expect;
var assert = chai.assert;
var should = chai.should();
 
describe('MyTest', function () {
    
    it('should be sane', function () {
        expect(1).to.equal(1);
    });
 
});