buster-istanbul
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -24,4 +24,5 @@ /* | ||
var setup = { | ||
node: function(group) { | ||
node: function(group, instrument) { | ||
coverage.hookRequire(); | ||
if (instrument === false) return; | ||
group.sources.forEach(function(pattern) { | ||
@@ -48,2 +49,3 @@ glob.glob(pattern).forEach(function(fPath) { | ||
group.on('load:sources', function(rs){ | ||
if (instrument === false) return; | ||
rs.addProcessor(function(resource, content){ | ||
@@ -91,3 +93,3 @@ return coverage.instrumentCode(content, resource['path'].replace(/\//, '')); | ||
configure: function(group) { | ||
setup[group.environment](group); | ||
setup[group.environment](group, this.options.instrument); | ||
var self = this; | ||
@@ -94,0 +96,0 @@ process.on("exit", function() { |
{ | ||
"name": "buster-istanbul", | ||
"description": "buster extension for istanbul code coverage.", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"homepage": "https://github.com/englishtown/buster-istanbul", | ||
@@ -6,0 +6,0 @@ "author": { |
12370
269