question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

allure-cucumber-js - Cannot read property 'sourceLocation' of undefined when running with --parallel

See original GitHub issue

I’m submitting a …

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

Allure-cucumberjs is used as a reporter for cucumber-js test framework. When I run tests using --parallel flag, test runner throws error:

TypeError: Cannot read property 'sourceLocation' of undefined
    at AllureReporter.onTestStepStarted (.../node_modules/allure-cucumberjs/src/CucumberJSAllureReporter.ts:192:18)
    at EventEmitter.emit (events.js:189:13)
    at Master.parseSlaveMessage (.../node_modules/cucumber/lib/runtime/parallel/master.js:55:31)
    at ChildProcess.slave.process.on.message (.../node_modules/cucumber/lib/runtime/parallel/master.js:83:12)
    at ChildProcess.emit (events.js:189:13)
    at emit (internal/child_process.js:820:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Please tell us about your environment:

Allure version
Test framework “cucumber”: “^6.0.5”
Allure adaptor allure-cucumberjs": “^2.0.0-beta.6”

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

1reaction
yevgen-getalocommented, Apr 15, 2020

The same error I have

0reactions
epszawcommented, Nov 23, 2022

Should be fixed in the last release. Feel free to reopen the issue, if it still doesn’t work for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebdriverIO:cucumber setup shows error "Cannot read ...
... shows error "Cannot read property length of undefined" when running tests ... and an example at the webdriverIO website which I'm trying...
Read more >
Avoiding those dang cannot read property of undefined errors
Uncaught TypeError : Cannot read property 'foo' of undefined. ​ The dreaded error we all hit at some point in JavaScript development.
Read more >
cannot read properties of undefined (reading 'split') mongoose
The cypress was able to run successfully with the corrected error. What are the versions of Node.js, Mongoose and MongoDB you are using?...
Read more >
TypeError: "x" has no properties - JavaScript - MDN Web Docs
TypeError : Cannot read properties of undefined (reading 'x') (V8-based) TypeError: null has no properties (Firefox) TypeError: undefined has ...
Read more >
The allure-js from allure-framework - Coder Social
Running tests using mocha 8 parallel feature with enabled allure-mocha ... allure-cucumber-js - Cannot read property 'sourceLocation' of undefined when ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found