1.0.0 • Published 8 years ago

inline-mocha v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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