How to skip using python library?

I would like to omit some module that is in a specific directory: eggs and bin

coverage -r -i --omit=/usr/lib/,/usr/share/,eggs,bin Name Stmts Exec Cover ----------------------------------------------------------------------------------------- bin/test 5 5 100% eggs/BeautifulSoup-3.0.7a-py2.6.egg/BeautifulSoup 1008 463 45% eggs/Django-1.0.2_final-py2.6.egg/django/__init__ 15 12 80% 

I also tried several variations of this with no luck:

 coverage -r -i --omit=/usr/lib/,/usr/share/,`pwd`/eggs,`pwd`/bin or coverage -r -i --omit=/usr/lib/,/usr/share/,django,BeautifulSoup or coverage -r -i --omit=/usr/lib/,/usr/share/,<absolute path>/eggs 

It would be great if someone had advice to get this to work.

+4
source share
1 answer

In truth, I think this might just be a bug in cover.py. I will look into her soon.

UPDATED: Well, I fixed this error (hopefully) and posted new sets: Coverage.py 3.2b2 . Please let me know if this is still not good.

+6
source

All Articles