grunt-mochify
v0.3.0
Published
Run Mochify with Grunt
Downloads
16
Readme
grunt-mochify
Run Mochify with Grunt
Mochify is an excellent package which will automatically bundle your tests with Browserify, and run them headlessly with PhantomJS. This package offers a Grunt task to use Mochify.
Usage
Refer to the Mochify Docs for information about options.
This is a multi-task, so:
gruntInitConfig({
mochify: {
options: {
reporter: 'spec'
},
myTarget: {
src: [
'test/file.js',
'test/anotherFile.js',
'test/more-tests/**.js'
],
options: {
require: './test/fixture.js'
}
}
});
Defaults
The default reporter is spec
, like in Mocha. Mochify's default reporter is dot
.
color
is on by default.
Debug Mode
Even if debug
is false
or unspecified in the Grunt config, you can start any target in "debug" mode via:
$ grunt mochify:myTarget:debug
Installation
$ npm install --save-dev grunt grunt-mochify
Fair Warning
I haven't tested this much.
Author
License
Copyright 2015, FocusVision Worldwide. Licensed MIT.