grunt-mocha-chai-sinon
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "grunt-mocha-chai-sinon", | ||
"description": "MochaJS + ChaiJS + SinonJS Test Runner", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Marco Pegoraro", |
@@ -40,2 +40,5 @@ grunt-mocha-chai-sinon | ||
'grunt-mocha-chai-sinon': { | ||
options: { | ||
coverageFilter: '/foo/foo1/' | ||
}, | ||
build: { | ||
@@ -42,0 +45,0 @@ src: ['./specs/**/*.spec.js'], |
@@ -9,8 +9,9 @@ /** | ||
require('blanket')({ | ||
// Only files that match the pattern will be instrumented | ||
pattern: '/src/' | ||
}); | ||
module.exports = function(grunt) { | ||
module.exports = function(grunt) { | ||
// try to configure a coverage filter | ||
require('blanket')({ | ||
// Only files that match the pattern will be instrumented | ||
pattern: grunt.config.data['grunt-mocha-chai-sinon'].options.coverageFilter || '/src/' | ||
}); | ||
@@ -17,0 +18,0 @@ grunt.registerMultiTask('grunt-mocha-chai-sinon', 'MochaJS + ChaiJS + SinonJS test runner', function() { |
4705
81
67