Open ZScannell opened 1 year ago
After running in cucumberjs, I can't view the report. All I get is this. TypeError: Cannot read properties of undefined (reading 'files') at kA (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:119:14479) at TA (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:119:14883) at Gr (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:66:19518) at Gh (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:68:43960) at Uh (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:68:39724) at Cb (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:68:39652) at W6 (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:68:39506) at q9 (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:68:35874) at zh (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:68:34825) at x (file:///C:/work/nightwatch2/tests_output/nightwatch-html-report/index.html:53:1556)
Does anyone have steps to reproduce this issue? If not we will have to close it as unreproducible.
To replicate the issue, try executing any nightwatch test using cucumber
runner. The generated report will not be rendered.
cc @AutomatedTester @vaibhavsingh97 @swrdfish
Nightwatch reporters like JUnit, HTML reporter are not available while running with cucumber. The main reason is that reporting is delegated to the Cucumber CLI. Refer the documentation to learn more: https://nightwatchjs.org/guide/writing-tests/using-cucumberjs.html#reporting
Having said that, we need to make sure html report does not get generated so that users do not get confused.
[Enter feedback here]
Error Details
Nightwatch Report
```json ```