开发者

How to use nose coverage with --timid flag

开发者 https://www.devze.com 2022-12-28 19:08 出处:网络
I\'d like开发者_如何学运维 to run \"nosetests --with-coverage\" using Ned Batchelder\'s coverage module, but passing the coverage module the --timid flag.

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?


You've got two options:

  1. Use a .coveragerc file to provide options to coverage.py

  2. Instead of running coverage inside nose, run nose inside coverage:

    coverage run c:\python25\scripts\nosetests-script.py 
    

(sorry for the Windows syntax if you aren't on Windows)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号