Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1108)

Side by Side Diff: tools/telemetry/third_party/coverage/doc/trouble.rst

Issue 1366913004: Add coverage Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 .. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2 .. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
3
4 .. _trouble:
5
6 =========================
7 Things that cause trouble
8 =========================
9
10 .. :history: 20121231T085200, brand new docs.
11 .. :history: 20150124T160800, remove obsolete stuff.
12
13
14 Coverage.py works well, and I want it to properly measure any Python program,
15 but there are some situations it can't cope with. This page details some known
16 problems, with possible courses of action, and links to coverage.py bug reports
17 with more information.
18
19 I would love to :ref:`hear from you <contact>` if you have information about
20 any of these problems, even just to explain to me why you want them to start
21 working properly.
22
23 If your problem isn't discussed here, you can of course search the `coverage.py
24 bug tracker`_ directly to see if there is some mention of it.
25
26 .. _coverage.py bug tracker: https://bitbucket.org/ned/coveragepy/issues?status= new&status=open
27
28
29 Things that don't work
30 ----------------------
31
32 There are a number of popular modules, packages, and libraries that prevent
33 coverage.py from working properly:
34
35 * `execv`_, or one of its variants. These end the current program and replace
36 it with a new one. This doesn't save the collected coverage data, so your
37 program that calls execv will not be fully measured. A patch for coverage.py
38 is in `issue 43`_.
39
40 * `thread`_, in the Python standard library, is the low-level threading
41 interface. Threads created with this module will not be traced. Use the
42 higher-level `threading`_ module instead.
43
44 * `sys.settrace`_ is the Python feature that coverage.py uses to see what's
45 happening in your program. If another part of your program is using
46 sys.settrace, then it will conflict with coverage.py, and it won't be
47 measured properly.
48
49 .. _execv: http://docs.python.org/library/os#os.execl
50 .. _sys.settrace: http://docs.python.org/library/sys.html#sys.settrace
51 .. _thread: http://docs.python.org/library/thread.html
52 .. _threading: http://docs.python.org/library/threading.html
53 .. _issue 43: https://bitbucket.org/ned/coveragepy/issue/43/coverage-measurement -fails-on-code
54
55
56 Things that require --timid
57 ---------------------------
58
59 Some packages interfere with coverage measurement, but you might be able to
60 make it work by using the ``--timid`` command-line switch, or the ``[run]
61 timid=True`` configuration option.
62
63 * `DecoratorTools`_, or any package which uses it, notably `TurboGears`_.
64 DecoratorTools fiddles with the trace function. You will need to use
65 ``--timid``.
66
67 .. _DecoratorTools: http://pypi.python.org/pypi/DecoratorTools
68 .. _TurboGears: http://turbogears.org/
69
70
71 Still having trouble?
72 ---------------------
73
74 If your problem isn't mentioned here, and isn't already reported in the
75 `coverage.py bug tracker`_, please :ref:`get in touch with me <contact>`,
76 we'll figure out a solution.
OLDNEW
« no previous file with comments | « tools/telemetry/third_party/coverage/doc/subprocess.rst ('k') | tools/telemetry/third_party/coverage/howto.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698