grunt-mocha-html

0.3.0 • Public • Published

grunt-mocha-html

generate html for mocha browser test.

sample Gruntfile

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        mocha_html: {
            all: {
                src   : [ 'js/lib/*.js', 'js/*.js' ],
                test  : [ 'test/*-test.js' ],
                assert : 'chai',
                checkLeaks : false,
                template: 'path/to/custom/template.html.ejs',
                html: 'path/to/output/html.html'
            }
        },
        mocha_phantomjs: {
            all: ['test/*.html']
        }
    });
 
    grunt.loadNpmTasks('grunt-mocha-phantomjs');
    grunt.loadNpmTasks('grunt-mocha-html');
 
    grunt.registerTask('test', ['mocha_html', 'mocha_phantomjs']);
    grunt.registerTask('default', ['test']);
};

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-mocha-html

Weekly Downloads

2

Version

0.3.0

License

BSD

Last publish

Collaborators

  • fnobi