diff options
author | Stephan Richter <stephan.richter@gmail.com> | 2019-01-24 07:44:59 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2019-06-10 17:15:32 -0400 |
commit | 0f5c9347aa8c72d853f49761d5580a770c4fd39f (patch) | |
tree | 82e0a136a16456d2df85f803a3ed9dc3da66d5ee /coverage/htmlfiles/pyfile.html | |
parent | 5c157a28c46b2f5ed9e9051e5b6c8d461b490f1b (diff) | |
download | python-coveragepy-git-0f5c9347aa8c72d853f49761d5580a770c4fd39f.tar.gz |
Extend HTML report to to show contexts for every covered line.
Diffstat (limited to 'coverage/htmlfiles/pyfile.html')
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 245ecf41..025ae797 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -88,6 +88,23 @@ </p> {% endfor %} </td> + {% if show_contexts -%} + <td class="contexts"> + {% for line in lines -%} + <p>{#-#} + {% if line.contexts -%} + <span class="context-button">ctx</span>{#-#} + <span class="context-list"> + {% for context in line.contexts -%} + <span class="context-line">{{context}}</span>{#-#} + {% endfor -%} + </span>{#-#} + {% endif -%} + + </p>{#-#} + {% endfor %} + </td> + {% endif -%} </tr> </table> </div> |