UNPKG

hilary

Version:

a simple Dependency Injection (DI) library that provides Inversion of Control (IoC) capabilities in Node.js and the browser

31 lines (28 loc) 1.21 kB
module.exports = function (grunt) { 'use strict'; grunt.loadNpmTasks('grunt-mocha-test'); // node // Update the grunt config grunt.config.set('mochaTest', { test: { options: { reporter: 'nyan', // 'spec', // 'min', // 'nyan', // 'xunit', //captureFile: 'results.txt', // Optionally capture the reporter output to a file quiet: false // Optionally suppress output to standard out (defaults to false) //clearRequireCache: false // Optionally clear the require cache before running tests (defaults to false) }, require: 'coverage/blanket', src: ['./tests/bootstrapper.js'] }, // coverage: { // options: { // reporter: 'html-cov', // // use the quiet flag to suppress the mocha console output // quiet: true, // // specify a destination file to capture the mocha // // output (the quiet option does not suppress this) // captureFile: 'coverage.html' // }, // src: ['./tests/node-bootstrapper.js'] // } }); };