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

[Bug]: Report failed to Render #20

Open
ZScannell opened this issue Jan 25, 2023 · 4 comments
Open

[Bug]: Report failed to Render #20

ZScannell opened this issue Jan 25, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ZScannell
Copy link

[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
Copy link

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
Copy link
Member

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

@harshit-bs
Copy link
Member

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

cc @AutomatedTester @vaibhavsingh97 @swrdfish

@swrdfish
Copy link
Member

swrdfish commented May 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants