diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2019-05-07 17:35:04 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-05-07 17:35:04 -0400 |
commit | 8558658bdebaa8e0d2885f97585ba8d9f5fb48ce (patch) | |
tree | a4c73b60ab0f00d3aae041800173db49fbb6fb5f | |
parent | 2539967a714fcefcb7bb8513fa68a146a45d9d87 (diff) | |
download | python-coveragepy-git-8558658bdebaa8e0d2885f97585ba8d9f5fb48ce.tar.gz |
Clarify the empty context. #796
-rw-r--r-- | doc/contexts.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/contexts.rst b/doc/contexts.rst index e3974ea2..f1796aae 100644 --- a/doc/contexts.rst +++ b/doc/contexts.rst @@ -73,6 +73,12 @@ whose names starts with "test". If you have both a static context and a dynamic context, they are joined with a pipe symbol to be recorded as a single string. +Initially, when your program starts running, the dynamic context is an empty +string. Any code measured before a dynamic context is set will be recorded in +this empty context. For example, if you are recording test names as contexts, +then the code run by the test runner before (and between) tests will be in the +empty context. + Context reporting ----------------- |