You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
ERROR Failed to load the "spec xunit" reporter. Please check the parameter for errors. Error details:
Cannot find module 'testcafe-reporter-spec xunit'
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)
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:
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: