Report non tested python file in coverage

467 Views Asked by At

I am writting the test cases for an existing project and there are multiple python files to be tested, I would like to know the coverage report for all the files under project directory even though there is no testcases wrritten for this file. When I run the below command

pytest --cache-clear --cov-report term-missing --cov=services/ tests/

Report only shows the file which has the test cases under tests/ directory but not showing the other yet to tested files.

I have tried with the below command as well coverage run --source=. -m pytest tests/ && coverage report -m

Can anyone please help how it is possible ?

0

There are 0 best solutions below