I am running my unit tests. But I want to exclude some folders and files during tests.
Here is my .coveragerc file
[run]
branch = True
source = .
omit =
Amazon_customers/.coveragerc
amazon_customers/tests
Amazon_customers/__init__.py
Amazon_customers/urls.py
Amazon_customers/wsgi.py
amazon_customers/test_utils/*
/migrations/
/manage.py/
I need to exclude these files but it is not working.
Finally got the solution:
[run]
omit =
*/environment/*
*/migrations/*
Amazon_customers/*
manage.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With