malta-mocha
v1.0.18
Published
malta plugin to run mocha tests at build
Downloads
179
Maintainers
Readme
This plugin can be used on: .js files and even on .coffee and .ts files after using the right plugin
The plugin will run mocha on the testfolder found in the execution path.
Sample usage:
malta app/script/main.js public/js -plugins=malta-mocha
or in the .json file :
"app/script/main.js" : "public/js -plugins=malta-mocha"
or in a script :
var Malta = require('malta');
Malta.get().check([
'app/script/main.js',
'public/js',
'-plugins=malta-mocha'
]).start(function (o) {
var s = this;
console.log('name : ' + o.name)
console.log("content : \n" + o.content);
'plugin' in o && console.log("plugin : " + o.plugin);
console.log('=========');
});