visionmedia / expresso

use mocha
http://visionmedia.github.com/expresso
759 stars 89 forks source link

Report Failures for each test function #142

Open stevemolitor opened 13 years ago

stevemolitor commented 13 years ago

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

// 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".
ericlathrop commented 12 years ago

Looks like someone has a fix for this in issue #156.