expresso icon indicating copy to clipboard operation
expresso copied to clipboard

Unhandled exceptions are not displayed

Open systemfreund opened this issue 13 years ago • 1 comments

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.

systemfreund avatar Mar 31 '11 11:03 systemfreund

+1

See pull request 91

bergmark avatar Apr 20 '11 09:04 bergmark