如何使用 --timid 标志来覆盖鼻子
我想使用 Ned Batchelder 的覆盖模块 运行“nosetests --with-coverage”,但是向覆盖模块传递 --timid 标志。 有没有办法(例如设置环境变量)使覆盖率与 --timid 一起运行?
I'd like to run "nosetests --with-coverage" using Ned Batchelder's coverage module, but passing the coverage module the --timid flag.
Is there a way (e.g. setting an environment variable) to make coverage run with --timid?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有两个选择:
使用 .coveragerc 文件为覆盖率.py 提供选项
不要在鼻子内运行覆盖率,而是运行鼻子内部报道:
如果您不在 Windows 上,请原谅 Windows 语法)
You've got two options:
Use a .coveragerc file to provide options to coverage.py
Instead of running coverage inside nose, run nose inside coverage:
(sorry for the Windows syntax if you aren't on Windows)