visionmedia/expresso — Issue #142: Report Failures for each test function
Author: stevemolitor
Created: 2011-10-20 21:16:40+00:00
State: open

This is a feature request: Report the first assertion failure in each test function, for each test function in a file. For example:

```javascript
// foo.test.js
var assert = require('assert');

exports.test1 = function () {
assert.fail('test1 failure');
};

exports.test2 = function () {
assert.fail('test2 failure');
};
```

If I run this with 'expresso foo.test.js', I only get one assertion failure message -

foo.test.js test1: AssertionError: "undefined" "test1 failure".

I would like to also see the second test failure, something like this:

foo.test.js
test1: AssertionError: "undefined" "test1 failure".
test2: AssertionError: "undefined" "test2 failure".