Noam Noam - 5 months ago 87
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

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 is being run in".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download