-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cucumber rerun feature] TypeError: Cannot read property 'line' of undefined #975
Comments
I can reproduce it, thanks. Checking. |
Hi @jan-molak, |
Hi @Gump0422 - after a couple of hours of debugging I believe that the issue is with Cucumber.js, so am working on creating a repo demonstrating the problem and reporting that to the Cucumber team. Thanks for offering to help; at the moment I think I just need to continue down this rabbit hole and make sure the problem is fixed at the source. If you'd like to help me secure more time for open-source development of Serenity/JS and submitting this and other fixes to Cucumber, please consider becoming a GitHub sponsor of Serenity/JS. |
HI, @jan-molak |
Confirmed bug in Cucumber.js - cucumber/cucumber-js#1783 |
@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:
Most likely not solved in the Serentiy/JS 2.x branch:
|
Closing as this issue should be resolved in 3.0.0-RC |
Hi, all
When using
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
The text was updated successfully, but these errors were encountered: