Skip to content
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

Unable to parse cucumberjs output into json: '%s' cucumber_report.json Error: cucumber_report.json: ENOENT: no such file or directory, open 'cucumber_report.json' #206

Closed
senocak opened this issue Nov 21, 2019 · 1 comment

Comments

@senocak
Copy link

senocak commented Nov 21, 2019

Hello,

I am using "cucumber-html-reporter": "5.0.2" and I am getting the following error and reporting is not working!

Unable to parse cucumberjs output into json: '%s' cucumber_report.json Error: cucumber_report.json: ENOENT: no such file or directory, open 'cucumber_report.json'

"dependencies": {
    "chromedriver": "^78.0.1",
    "cucumber": "^4.2.1",
    "express": "^4.17.1",
    "selenium-webdriver": "^3.6.0",
    "cucumber-html-reporter": "5.0.2"
  }
After(function(){
  var reporter = require('cucumber-html-reporter');
  var options = {
    theme: 'bootstrap',
    jsonFile: 'cucumber_report.json',
    output: 'cucumber_report.html',
    reportSuiteAsScenarios: true,
    scenarioTimestamp: true,
    launchReport: true,
    metadata: {
        "App Version":"0.3.2",
        "Test Environment": "STAGING",
        "Browser": "Chrome  54.0.2840.98",
        "Platform": "Windows 10",
        "Parallel": "Scenarios",
        "Executed": "Remote"
    }
  };

  reporter.generate(options);
  //return driver.close()
})
@hujunhaorobert
Copy link
Contributor

I have a fix solution in the above PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants