From 22f07edd52f66d2b354d1e06c3ec5e50c4ffbd8c Mon Sep 17 00:00:00 2001 From: Barney Carroll Date: Tue, 6 Dec 2016 18:18:53 +0000 Subject: [PATCH] Make ospec report the number of failing assertions --- ospec/ospec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ospec/ospec.js b/ospec/ospec.js index 60c0b66c..f094dfe6 100644 --- a/ospec/ospec.js +++ b/ospec/ospec.js @@ -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) }