Closed manoj-fsbtech closed 2 years ago
@wswebcreation ,
I have created this pull request where I am defaulting the line number to UID can you have a look at the same and approve it. https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/pull/89
There are few format issues I have fixed them.
Thanks, I've reviewed the PR. Will close it and proceed in #89
Config of webdriver.io and the reporter
Describe the bug It seems like when we generate the JSON report out of the wdio-cucumberjs-json-reporter package under the Steps definitions it is returning as the null.
To Reproduce Just generate a sample Cucumber Json report
Expected behavior Can we show the line number of the cucumber under the steps if we not able to find the line number can we default it to 0.
Snapshots
Additional context When I have checked under the file, then it is showing step defination line number as null https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/blob/main/lib/reporter.ts