Skip to content

Commit

Permalink
One clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Apr 5, 2020
1 parent b890a3d commit 1720459
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/faq.rst
Expand Up @@ -31,6 +31,8 @@ The definition lines are executed without coverage measurement, then
coverage.py is started, then the function is called. This means the body is
measured, but the definition of the function itself is not.

The same thing can happen with the bodies of classes.

To fix this, start coverage.py earlier. If you use the :ref:`command line
<cmd>` to run your program with coverage.py, then your entire program will be
monitored. If you are using the :ref:`API <api>`, you need to call
Expand Down

0 comments on commit 1720459

Please sign in to comment.