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-js] Cannot start new step using v.2.0.0-beta.18 with cucumber-js

See original GitHub issue

currentExecutable throws “No executable!” error when trying to execute startStep function.

Error: No executable!
           at CucumberAllureInterface.get currentExecutable [as currentExecutable] (/Users/fguidobaldi/Repositorios/fury_qaautomation/node_modules/allure-cucumberjs/dist/src/CucumberAllureInterface.js:65:15)
           at CucumberAllureInterface.startStep (/Users/fguidobaldi/Repositorios/fury_qaautomation/node_modules/allure-cucumberjs/dist/src/CucumberAllureInterface.js:74:33)
           at attachRequestAndResponse (/Users/fguidobaldi/Repositorios/fury_qaautomation/features/steps/when.js:410:33)
           at World.<anonymous> (/Users/fguidobaldi/Repositorios/fury_qaautomation/features/steps/when.js:176:7)
           at processTicksAndRejections (node:internal/process/task_queues:96:5)

I added plain Reporter code following the docs (https://github.com/allure-framework/allure-js/blob/master/packages/allure-cucumberjs/README.md), but it doesn’t work out.

const { CucumberJSAllureFormatter } = require('allure-cucumberjs');
const { AllureRuntime } = require('allure-cucumberjs');

function Reporter(options) {
  return new CucumberJSAllureFormatter(
    options,
    new AllureRuntime({ resultsDir: './allure-results' }),
    {},
  );
}
Reporter.prototype = Object.create(CucumberJSAllureFormatter.prototype);
Reporter.prototype.constructor = Reporter;

exports.default = Reporter;

This code was working with v.2.0.0-beta.9 and Cucumber 6

Expected behavior I should be able to create new steps using newer versions of allure-js.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
fguidobaldicommented, Aug 30, 2022

Glad to know that you were able to find the problem! Let me know if I can help with anything, I’ll be looking forward for this!

1reaction
epszawcommented, Aug 24, 2022

Yes, I’ve reproduced the issue, still working on that. Will notify you as soon as I get any working result

Read more comments on GitHub >

github_iconTop Results From Across the Web

allure-cucumberjs - npm
Allure Cucumber.JS integration. Latest version: 2.0.0-beta.22, last published: 2 days ago. Start using allure-cucumberjs in your project by running `npm i ...
Read more >
CucumberJS and the Allure Reporter - YouTube
https://learn.webdriver.ioRecorded Jan. 25th, 2018WebdriverIO Wednesdays is a live stream going through various WebdriverIO concepts, ...
Read more >
Allure JS protractor-cucumber-framework cucumberOpts
Now, while I provide Allure reporter to cucumberOpts.format together with cucumber-pretty, the 2nd one doesn't want to work. What I'm using: " ...
Read more >
allure-js-commons | Yarn - Package Manager
allure-framework2.4mApache-2.02.0.0-beta.21TS vulns 0 vulnerabilities. Allure JS Commons ... Cucumber.JS ... Use it. $ yarn add allure-js-commons ...
Read more >
Cucumber.js Tutorial with Examples For Selenium JavaScript
Let's start our Cucumber.js tutorial with a small brief about the ... the latest version of the Cucumber.js module, we will use the...
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