defunctzombie/zuul

current_test is undefined when test fails

alekseykulikov opened this issue · 1 comments

This is a test, that caused this output: https://saucelabs.com/tests/071c92de092d4477bad44927c434272a

- testing: android @ Linux: 4.0 5.0
- queuing: <android 5.0 on Linux>
- queuing: <android 4.0 on Linux>
- starting: <android 4.0 on Linux>
- starting: <android 5.0 on Linux>

/Users/aleksey/.nvm/versions/node/v5.0.0/lib/node_modules/zuul/bin/zuul:284
                console.log('%s %s'.red, name, current_test.name);
                                                           ^

TypeError: Cannot read property 'name' of undefined
    at EventEmitter.<anonymous> (/Users/aleksey/.nvm/versions/node/v5.0.0/lib/node_modules/zuul/bin/zuul:284:60)
    at emitOne (events.js:77:13)

It seems, there's assertion event fires before test.

vvo commented

done as 3.7.3