nightwatchjs / html-reporter

Nightwatch HTML Reporter
MIT License
3 stars 22 forks source link

[Bug]: Report failed to Render #20

Open ZScannell opened 1 year ago

ZScannell commented 1 year ago

[Enter feedback here]


Error Details

  kA@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:119:14506
TA@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:119:14885
Gr@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:66:19518
Gh@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:68:43960
Uh@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:68:39726
Cb@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:68:39654
W6@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:68:39506
q9@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:68:35874
zh@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:68:34825
x@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:53:1558
j@file:///C:/Users/zscannell/OneDrive%20-%20EBSCO%20Industries/Documents/GitHub/EIS-OPF-Mercury-Automated-Testing/tests_output/EBSCOConnect/nightwatch-html-report/index.html:53:1916
Nightwatch Report ```json ```
cvacalares commented 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)

AutomatedTester commented 1 year ago

Does anyone have steps to reproduce this issue? If not we will have to close it as unreproducible.

harshit-bs commented 1 year ago

To replicate the issue, try executing any nightwatch test using cucumber runner. The generated report will not be rendered.

cc @AutomatedTester @vaibhavsingh97 @swrdfish

swrdfish commented 1 year ago

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.