[Cucumber rerun feature] TypeError: Cannot read property 'line' of undefined
See original GitHub issueHi, all When using
rerun:@rerun.txt
Error: TypeError: Cannot read property ‘line’ of undefined [rerun:execute] at CucumberMessagesParser.scenarioDetailsFor (/Users/tab.wu/Study/cucum/serenity-js-cucumber-protractor-template/node_modules/@serenity-js/cucumber/src/listeners/messages/parser/CucumberMessagesParser.ts:185:26) [rerun:execute] at CucumberMessagesParser.parseTestCaseStarted (/Users/tab.wu/Study/cucum/serenity-js-cucumber-protractor-template/node_modules/@serenity-js/cucumber/src/listeners/messages/parser/CucumberMessagesParser.ts:87:37) [rerun:execute] at EventEmitter.CucumberMessagesListener.options.eventBroadcaster.on (/Users/tab.wu/Study/cucum/serenity-js-cucumber-protractor-template/node_modules/@serenity-js/cucumber/src/listeners/messages/CucumberMessagesListener.ts:50:41) [rerun:execute] at EventEmitter.emit (events.js:203:15) [rerun:execute] at EventEmitter.emit (domain.js:448:20)
Plz refer to example: https://github.com/Gump0422/serenity-js-cucumber-protractor-template
You can run with commads:
npm install
npm test
npm rerun
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)

Top Related StackOverflow Question
HI, @jan-molak Thanks for your nice work and support, Serenity/JS is a good test framework and I am so interested, I will consider your advice to be a sponsor of it, since I have a job now, I have to ensure it will not be conflict with my job.
@jan-molak, issue should be solved in cucumber-js since version 8.4.0.
Should be solved then in the latest Serenity/JS 3.0 RC as well: https://github.com/serenity-js/serenity-js/blob/3480ba44d83ff663a6a7c3e51ab1f977776cc9d0/packages/cucumber/package.json#L65
Most likely not solved in the Serentiy/JS 2.x branch: https://github.com/serenity-js/serenity-js/blob/0a7c900eea7d29e1647ea915150d7b66450126be/packages/cucumber/package.json#L68