我正在使用旧版cucumber
和protractor-cucumber-framework
的项目中工作 - 1.3.3&分别为1.0.2。我想使用这些软件包的最新版本,但是当我在
cucumber@4.2.1
& protractor-cucumber-framework@5.0.0
我收到以下错误:
Unhandled rejection TypeError: Cannot read property '0' of undefined
at EventDataCollector.storePickle (C:\projectPath\node_modules\cucumber\src\formatter\helpers\event_data_collector.js:48:30)
at emitOne (events.js:96:13)
at EventEmitter.emit (events.js:191:7)
at C:\projectPath\node_modules\cucumber\src\cli\helpers.js:56:26
at Array.forEach (native)
at C:\projectPath\node_modules\cucumber\src\cli\helpers.js:51:10
at Generator.next (<anonymous>)
at Generator.tryCatcher (C:\projectPath\node_modules\bluebird\js\release\util.js:16:23)
at PromiseSpawn._promiseFulfilled (C:\projectPath\node_modules\bluebird\js\release\generators.js:97:49)
at C:\projectPath\node_modules\bluebird\js\release\generators.js:201:15
at getTestCases (C:\projectPath\node_modules\cucumber\lib\cli\helpers.js:96:18)
at C:\projectPath\node_modules\cucumber\src\cli\helpers.js:30:13
at Generator.next (<anonymous>)
at Generator.tryCatcher (C:\projectPath\node_modules\bluebird\js\release\util.js:16:23)
at PromiseSpawn._promiseFulfilled (C:\projectPath\node_modules\bluebird\js\release\generators.js:97:49)
at Promise._settlePromise (C:\projectPath\node_modules\bluebird\js\release\promise.js:574:26)
at Promise._settlePromise0 (C:\projectPath\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises (C:\projectPath\node_modules\bluebird\js\release\promise.js:693:18)
at Async._drainQueue (C:\projectPath\node_modules\bluebird\js\release\async.js:133:16)
at Async._drainQueues (C:\projectPath\node_modules\bluebird\js\release\async.js:143:10)
at Immediate.Async.drainQueues (C:\projectPath\node_modules\bluebird\js\release\async.js:17:14)
at runCallback (timers.js:666:20)
at tryOnImmediate (timers.js:639:5)
at processImmediate [as _immediateCallback] (timers.js:611:5)
[18:54:29] E/launcher - BUG: launcher exited with 1 tasks remaining
[18:54:29] 'cucumber-start' errored after 18 s
[18:54:29] Error in plugin 'gulp-protractor'
Message:
protractor exited with code 100
我在谷歌搜索过,但它并没有帮助我。如果有人能说明问题是什么,那就太好了。
顺便说一句,我使用的是Windows7 x64。 NodeJS版本是7.7.1,量角器 - 5.3.2。
黄瓜选项是:
cucumberOpts: {
require: [
'./features/step_definitions/**/*.steps.js',
'./features/support/hooks.js',
'./features/support/env.js'
],
tags: false,
format: 'json:./reports/cucumber.json',
profile: false,
ignoreUncaughtExceptions: true,
'no-source': true
},