inline-mocha
v1.0.0
Published
Run your mocha tests using `node mytest.js` without Mocha installed globally
Downloads
3
Maintainers
Readme
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