visionmedia / expresso

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

Test name is lost when asserting from inside a callback #150

Open pselden opened 13 years ago

pselden commented 13 years ago

Perhaps it's not possible to preserve this information, but it would be helpful to have:

exports['Timeout test'] = function(beforeExit, assert){
    setTimeout(function(){
        assert.ok(false);
    }, 100);
};
$ expresso ./test

   uncaught undefined: AssertionError: true == false
    at Object._onTimeout (/test/test.test.js:3:10)
    at Timer.callback (timers.js:83:39)
kkaefer commented 13 years ago

This should be solved in the 0.9.0 release.

pselden commented 13 years ago

I'm running the latest version (which npm claims to be 0.9.2???). Am I missing something here?