A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nedbat/coveragepy/issues/13 below:

coverage broken by peak.util.addons · Issue #13 · nedbat/coveragepy · GitHub

Originally reported by shauncutts (Bitbucket: shauncutts, GitHub: Unknown)

say we have test1.py such as:

#!python
# from peak.util.addons import AddOn

def foo():
  print "bar"

foo()

Now, if I run coverage on this

#!shell
> coverage -e -x test.py
> coverage -r test.py
Name    Stmts   Exec  Cover
---------------------------
test        3      3   100%

it works fine. However, with the first "include" line uncommented, it breaks:

#!shell
> coverage -e -x test.py
> coverage -r test.py
Name    Stmts   Exec  Cover
---------------------------
test        4      1    25%

If coverage is being run by nosetests, then it reports 0 coverage for all modules after the first one with an "addons" include.

-- Shaun

PS -- Great tool, by the way. I'd try to do more diagnosis if I weren't in the middle of a coding grind.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4