1 year ago

#351095

test-img

Surajit Kundu

Report non tested python file in coverage

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 ?

python

code-coverage

coverage.py

pytest-cov

0 Answers

Your Answer

Accepted video resources