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: #5

Open
skAutomation12 opened this issue Apr 19, 2019 · 0 comments
Open

Unable to parse cucumberjs output into json: #5

skAutomation12 opened this issue Apr 19, 2019 · 0 comments

Comments

@skAutomation12
Copy link

skAutomation12 commented Apr 19, 2019

Unable to parse cucumberjs output into json: './cukereport.json' { Error: ./cukereport.json: ENOENT: no such file or directory, open './cukereport.json' at Object.openSync (fs.js:439:3) at Object.readFileSync (fs.js:344:35) at Object.readFileSync (D:\cpCucumberJSE2E\node_modules\jsonfile\index.js:67:22) at isValidJsonFile (D:\cpCucumberJSE2E\node_modules\cucumber-html-reporter\lib\reporter.js:443:48) at Object.generate (D:\cpCucumberJSE2E\node_modules\cucumber-html-reporter\lib\reporter.js:465:9) at Object.generateReport [as generate] (D:\cpCucumberJSE2E\node_modules\cucumber-html-reporter\index.js:30:21) at Object.<anonymous> (D:\cpCucumberJSE2E\index.js:21:10) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) errno: -4058, syscall: 'open', code: 'ENOENT', path: './cukereport.json' }

Conf.JS:

format: 'json:.tmp/results.json',

index.js
`var reporter = require('cucumber-html-reporter');

var options = {
theme: 'bootstrap',
jsonFile: './cukereport.json',
output: './cucumber_report.html',
reportSuiteAsScenarios: true,
ignoreBadJsonFile: true,
brandTitle: 'E2E Report',
launchReport: true,`

generated file has numbers appended to it.

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

1 participant