visionmedia / expresso

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

Unhandled exceptions are not displayed #85

Open systemfreund opened 13 years ago

systemfreund commented 13 years ago

When an unhandled exception occurs during a test, expresso just outputs this:

test.js test do_something(): undefined

Failures: 1

test.js:

function do_something() {
    // tries to do real stuff, but throws an exception, due to an error:
    throw "i want to appear in the log";
}

exports["test do_something()"] = function() {
    var result = do_something();
    assert.equal(true, result);
}

It'd be helpful, if the exception and its stacktrace would be logged.

bergmark commented 13 years ago

+1

See pull request 91