nodeunit icon indicating copy to clipboard operation
nodeunit copied to clipboard

[Bug] reporter minimal doesn't throw "undone tests"

Open FGRibreau opened this issue 13 years ago • 0 comments

Reporter minimal doesn't throw "undone tests" and so exit with 0 instead of 1.

/test (master⚡) ./node_modules/nodeunit/bin/nodeunit --reporter minimal ./tests/my.test.js
my.test.js: ..%                                                                                                                                                                           /test (master⚡) echo $?
0
/test (master⚡) ./node_modules/nodeunit/bin/nodeunit ./tests/my.test.js                   

my.test.js
✔ constructor
✔ _getKeywords

FAILURES: Undone tests (or their setups/teardowns): 
- onKeywords

To fix this, make sure all tests call test.done()
/test (master⚡) echo $?                                                                                                 
1
/test (master⚡) 

FGRibreau avatar Mar 16 '12 17:03 FGRibreau