inline-mocha

1.0.0 • Public • Published

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

/inline-mocha/

    Package Sidebar

    Install

    npm i inline-mocha

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • timjrobinson