grunt-mochify

0.3.0 • Public • Published

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.

/grunt-mochify/

    Package Sidebar

    Install

    npm i grunt-mochify

    Weekly Downloads

    2

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • boneskull