Introduction
A directory containing a test and main python file has been created. Executing a test works:
C:\...>py test/test.py
..
----------------------------------------------------------------------
Ran 2 tests in 0.001s
OK
According to this documentation it is possible to measure code coverage using the command line.
A number of commands has been issued:
C:\...>coverage run --source="C:\path\to\test"
Nothing to do.
Use 'coverage help' for help.
C:\...>coverage run --source "C:\path\to\test\main.py" -m "C:\path\to\test\test.py"
No module named 'C:\path\to\test\test.py'
without success.
Question
Which command needs to be issued in order to measure the code coverage of a Python file using CoveragePy?