Noam Noam - 25 days ago 9
Python Question

Python Coverage: Where is .coveragerc file?

I guess it is really simple and I just misunderstood something but here goes:
I'm using python coverage to see how much code my unit tests are covering, I wanted to use a config file in order to config some coverage settings but I can't find where it is (it isn't in the same folder where

.coverage
is)
I also can't create it as there is nothing before the extension so windows won't let me.
Feels like an idiot, can you help me out with this?

Answer Source

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

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