0.3.0 • Published 9 years ago

grunt-mochify v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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

Christopher Hiller

License

Copyright 2015, FocusVision Worldwide. Licensed MIT.

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago