Make ospec report the number of failing assertions

This commit is contained in:
Barney Carroll 2016-12-06 18:18:53 +00:00
parent 6a63cb702d
commit 22f07edd52

View file

@ -202,7 +202,10 @@ module.exports = new function init() {
status = 1
}
}
console.log(results.length + " assertions completed in " + Math.round(new Date - start) + "ms")
console.log(
results.length + " assertions completed in " + Math.round(new Date - start) + "ms, " +
"of which " + results.filter(function(result){return result.error}).length + " failed"
)
if (hasProcess && status === 1) process.exit(1)
}