Merge pull request #1460 from barneycarroll/ospec-report-failure-count

Ospec: report failure count
This commit is contained in:
Leo Horie 2016-12-06 22:22:35 -05:00 committed by GitHub
commit a2ae21ed95

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)
}