【发布时间】:2010-04-29 08:20:09
【问题描述】:
我想使用Ned Batchelder's coverage module 运行“nosetests --with-coverage”,但将 --timid 标志传递给覆盖模块。 有没有办法(例如设置环境变量)使用 --timid 运行覆盖?
【问题讨论】:
标签: python nose code-coverage
我想使用Ned Batchelder's coverage module 运行“nosetests --with-coverage”,但将 --timid 标志传递给覆盖模块。 有没有办法(例如设置环境变量)使用 --timid 运行覆盖?
【问题讨论】:
标签: python nose code-coverage
你有两个选择:
使用 .coveragerc 文件为 coverage.py 提供选项
不是在鼻子内运行覆盖,而是在覆盖内运行鼻子:
coverage run c:\python25\scripts\nosetests-script.py
(如果您不在 Windows 上,请原谅 Windows 语法)
【讨论】: