BorisOsipov / wdio-reportportal-reporter

A WebdriverIO plugin. Report results to Report Portal.
MIT License
23 stars 29 forks source link

Reporter crashes if suite failed by before hooks #16

Open BorisOsipov opened 6 years ago

BorisOsipov commented 6 years ago

The problem

Reporter crashes if suite failed by before hooks

Environment

Details

C:\work\tests\node_modules\webdriverio\build\lib\utils\BaseReporter.js:336
                        throw _iteratorError;
TypeError: Cannot read property 'id' of null
    at ReportPortalReporter.suiteEnd (C:\work\tests\node_modules\wdio-reportportal-reporter\build\reporter.js:112:59)
    at ReportPortalReporter.emit (events.js:182:13)
    at ReportPortalReporter.EventEmitter.emit (domain.js:442:20)
    at BaseReporter.handleEvent (C:\work\tests\node_modules\webdriverio\build\lib\utils\BaseReporter.js:324:35)
    at Launcher.messageHandler (C:\work\tests\node_modules\webdriverio\build\lib\launcher.js:688:28)
BorisOsipov commented 5 years ago

Still actual. Need investigate and fix