running mocha test Wayne Rasmussen 创建于 2015年09月27日 06:48 When running mocha tests, the test runs if from debug but fails if I hit the run button. Is that normal?
Not sure I follow you... Do you mean that test running produces different result in debug mode (test succeeds in debugger but fails when running)? No, it's not normal. Are you sure the test succeeds? Tests results tree is not shown in debug mode...
Sorry, forgot about this post. FYI, the code came from jetbrains@youtube video starting around here: https://youtu.be/xuXIBSa_7j4?t=28m41s
The failure difference is on line 31 of test.js. In one case 200ms is used and the other 2000ms is used.
Attachment(s):
debugMocha_200ms_passes.png
runMocha_2000ms_FAIL.png
runMocha_200ms_passes.png
debugMocha_2000ms_passes.png
tests.js