I am trying to run coverage on a Python file of unit tests, WorkTest.py, and forward the output to a file, output.txt.
$ coverage run --branch WorkTest.py > output.txt
But, the output keeps appearing on the screen and there is no output.txt in the folder where I ran this command in. Why does coverage fail to redirect the output to the file?
I have Windows 10, python 3.6.8, coverage 5.1, and command line Git Bash that comes with Git. Thank you.