[TIP] How to stop coverage from visiting /usr/local when running pytes?

Laurens Van Houtven _ at lvh.io
Sun May 26 05:13:09 PDT 2013


My projects tend to have a .coveragerc file like this:

[run]
branch = True
source =
    exponent
    docs/tutorial/todo

[report]
exclude_lines =
    pragma: no cover

Alternatively, all of those can be specified on the command line. You
probably want the --source argument to coverage run. You can get help for
coverage run by typing "coverage help run". Also take a look at the
--include/--omit flags :)

For a runnable example, look at: https://github.com/lvh/exponent

Specifically, .coveragerc and tox.ini.

hth
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20130526/864e6614/attachment.html>


More information about the testing-in-python mailing list