【发布时间】:2011-07-26 09:40:36
【问题描述】:
我正在使用nosetests 运行一些单元测试,并使用以下方式向我展示我们的代码覆盖率:
nosetests -w ./test --with-xunit --with-coverage --cover-tests
这很好用,除了我在输出中看到一堆 Python 包。这是一个示例:
ctypes._endian 34 12 35% 15-20, 24-32, 50-60
ctypes.macholib 1 1 100%
email 29 25 86% 56-57, 65-66
email.errors 15 14 93% 39
如何排除这些包?
【问题讨论】:
标签: python code-coverage nose coverage.py python-coverage