npm.io
1.0.0 • Published 10 years ago

inline-mocha

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

inline-mocha

Run your tests using node mytest.js instead of mocha mytest.js, and you don't need Mocha installed globally. Useful for IDE's such as Cloud9 where the run button runs the current file using node. You can now run your tests with one click.

Installation

npm install inline-mocha --save-dev

Usage

require("inline-mocha")(module);

var assert = require("assert");
describe("foo test", function() {
    it("Should equal 2", function() {
        assert.equal(1 + 1, 2);
    });
});
node mytest.js

Keywords