counterpane
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -9,5 +9,2 @@ var fs = require('fs'); | ||
var testDir = options.testDir || argv.t || ''; | ||
console.log(srcDir, testDir); | ||
var ignoreList = [ | ||
@@ -22,3 +19,2 @@ '/app/config.js', | ||
var skipCount = 0; | ||
var relFilePath, | ||
@@ -36,12 +32,10 @@ appDir, | ||
list = output[key]; | ||
if(typeof list === 'object'){ | ||
summaryString = key + "\n" + String(list.length) + ' missing tests'; | ||
console.log(summaryString.red); | ||
summaryString = key + "\n" + String(list.length) + ' missing tests'; | ||
console.log(summaryString.red); | ||
for(var j= 0; j < list.length; j++) { | ||
console.log(list[j]); | ||
} | ||
console.log("\n" + '-------------------------------------------------------------'.red + "\n"); | ||
for(var j= 0; j < list.length; j++) { | ||
console.log(list[j]); | ||
} | ||
console.log("\n" + '-------------------------------------------------------------'.red + "\n"); | ||
} | ||
} | ||
@@ -55,16 +49,10 @@ } | ||
} | ||
var i = 0; | ||
(function next () { | ||
var file = list[i++]; | ||
if (!file) { | ||
return done(null); | ||
} | ||
file = dir + '/' + file; | ||
fs.stat(file, function (error, stat) { | ||
if (stat && stat.isDirectory()) { | ||
@@ -75,3 +63,2 @@ walk(file, function (error) { | ||
} else { | ||
var skip = false; | ||
@@ -86,3 +73,2 @@ for (var j = 0; j < ignoreList.length; j++) { | ||
} | ||
if (!skip) { | ||
@@ -89,0 +75,0 @@ var checkFile = file.replace(srcDir, testDir); |
@@ -5,3 +5,3 @@ { | ||
"description": "Counts files covered by tests", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "" |
4397
114