Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Python Coverage .coveragerc file?

I'm using Python Coverage to see how much code my unit tests are covering. I want to use a config file in order to configure some coverage settings but I can't find where it is. It isn't in the same folder where .coverage is. Also, Windows won't let me create it, as there is nothing before the extension.

like image 910
Noam Avatar asked Sep 03 '25 10:09

Noam


1 Answers

I googled for a workaround, finding a solution here. Create the file naming it as .coveragerc . Apparently it should accept the name. Try it out!

You should put the file "in the same directory coverage.py is being run in".

like image 156
Dominik Stańczak Avatar answered Sep 04 '25 23:09

Dominik Stańczak