Occasionally, when executing a series of mocha tests, I am not interested in the specifics of failures; I simply require a list of tests indicating pass or fail. Despite trying various reporters, they all tend to provide detailed information on failures. I appreciate the structure of the default spec reporter, but I have not been able to find a way to hide the details.
For instance, consider the following tests:
const assert = require('assert')
describe('test test', function() {
it('should pass', function() {
})
it('should fail', function() {
assert(false)
})
})
This code snippet generates output like this:
test test
✓ should pass
1) should fail
1 passing (9ms)
1 failing
1) test test
should fail:
AssertionError [ERR_ASSERTION]: false == true
+ expected - actual
-false
+true
at Context.<anonymous> (test-solution.js:69:5)
What I actually desire is simpler:
test test
✓ should pass
1) should fail
1 passing (9ms)
1 failing
Is there something obvious that I am overlooking, or are these details something that cannot be suppressed?