I am running below command to trigger test using docker and and generate report file.
sudo docker run -v /var/lib/jenkins/workspace/myproject:/tests -it testcafe/testcafe 'firefox' /tests/tests/mytest.js -e > /tests/test-reports/test-result1.html
Without the std output redirect at the end the tests runs properly, but whenever i add the
> /tests/test-reports/test-result1.html it errors out with below error:
-bash: /tests/test-reports/test-result.html: No such file or directory.
I am not sure but it looks like it is treating stdout as output of docker run command and not of testcafe.
Q: How can i generate test report file while running test with docker run.