dalek: "WARNING: done not called!" masking real errors
I’m not getting error messages / stack traces of problems my tests may have. Instead I’m presented with the utterly useless (and easy to miss) message “WARNING: done not called!”.
I need to see what I did wrong here. Tests need to halt. This is a JavaScript error. I tried to invoke a function that doesn’t exist. My test is flawed - stop and yell!
{
foo: function(test) {
test
// Note that this should be .assert.doesntExist()
.doesntExist('.selector')
// this isn't called
.done();
}
}
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 16 (6 by maintainers)
Commits related to this issue
- fix for test hanging when error is thrown https://github.com/dalekjs/dalek/issues/12 this will make the test finish, but it will always finish successfully even if error is thrown. — committed to eyalzek/dalek by eyalzek 10 years ago
- Exit with non-zero status on error This is a crude fix for: * https://github.com/dalekjs/dalek/issues/12 Without this fix, any errors thrown in a test will result in a passing test. See: * h... — committed to bowsersenior/dalek by bowsersenior 9 years ago
Also having the same issue as @bowsersenior.
I’m using the following versions: DalekJS CLI Tools Version: 0.0.5 DalekJS local install: 0.0.9
Syntax errors do not entail an error in command line - see the mistake
.assert.text.to.contain('#i_am_a_textbox', 'TEXT')in the code block below. After changing this syntax mistake to.assert.text('#i_am_a_textbox').to.contain('TEXT'), a real error did show up in console.