Cannot Run Example for Multiple Reporters #8359
Labels
AREA: docs
An issue related to the product documentation.
TYPE: bug
The described behavior is considered as wrong (bug).
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: