-
Notifications
You must be signed in to change notification settings - Fork 675
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
Cannot Run Example for Multiple Reporters #8359
Comments
Hello @GuacoIV , Thank you for reporting the issue. I have managed to reproduce it. It appears to affect TestCafe test execution only in Node.js of version 22. We will investigate the issue and update this thread once we have any progress. As a workaround, please enclose the reports list in double quotes as follows: testcafe chrome getting-started.js -r "spec,xunit:report.xml" |
Ah yes, that workaround does work perfectly! That's for repro-ing, investigating, and providing the workaround. |
I have just noticed another error that is kind of in the same genre (multiple values for an argument). When trying to supply specified ports as documented here I receive "ERROR The "--ports" option requires two arguments." Taking a note from this workaround, I tried wrapping the two ports in quotes like so @aleks-pro Do you have any insight as to whether the fix for this open issue would happen to also cover the port arg issue? I can always open a separate one. |
Thank you for the information!
It's not necessary to open a separate issue. We will address the bug with the ports option in the context of the current issue. |
What is your Scenario?
I'd like to output the results to two reporters using command line arguments. I have found that even the provided example here My real-world scenario is to output to spec and testcafe-reporter-testrail as shown here however I will focus on the former example for simplicity.
What is the Current behavior?
I receive the following error:
But I find that if I configure the multiple reports in a .testcaferc.json configuration file then it works fine. So it seems to be a command parsing issue or misaligned documentation.
What is the Expected behavior?
Tests begin to run
What is the public URL of the test page? (attach your complete example)
(not needed)
What is your TestCafe test code?
(any)
Your complete configuration file
The failing scenario it is simply:
And in the workaround scenario:
Your complete test report
Using locally installed version of TestCafe.
ERROR Failed to load the "spec xunit" reporter. Please check the parameter for errors. Error details:
Cannot find module 'testcafe-reporter-spec xunit'
Type "testcafe -h" for help.
Screenshots
No response
Steps to Reproduce
Simply run the command
testcafe chrome getting-started.js -r spec,xunit:report.xml
TestCafe version
3.7.0
Node.js version
v22.11.0
Command-line arguments
testcafe chrome getting-started.js -r spec,xunit:report.xml
Browser name(s) and version(s)
Chrome 131
Platform(s) and version(s)
Windows 11
Other
No response
The text was updated successfully, but these errors were encountered: