Make ospec report the number of failing assertions
This commit is contained in:
parent
6a63cb702d
commit
22f07edd52
1 changed files with 4 additions and 1 deletions
|
|
@ -202,7 +202,10 @@ module.exports = new function init() {
|
||||||
status = 1
|
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)
|
if (hasProcess && status === 1) process.exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue