summaryrefslogtreecommitdiff
path: root/coverage/jsonreport.py
diff options
context:
space:
mode:
authorSalvatore Zagaria <salvatore.zagaria@vector.com>2020-03-31 17:24:13 +0100
committerSalvatore Zagaria <salvatore.zagaria@vector.com>2020-04-07 10:52:03 +0100
commitf5eb5f2159180db8cf0a1cf8b34bc96f1140dc96 (patch)
treed53508900417fbcb4deab8d636af0782d3e28498 /coverage/jsonreport.py
parent17204597c33db2cc396d32b8f9931c35f2518675 (diff)
downloadpython-coveragepy-git-f5eb5f2159180db8cf0a1cf8b34bc96f1140dc96.tar.gz
Extending jsonreport.py to also include all branch attributes
Signed-off-by: Salvatore Zagaria <salvatore.zagaria@vector.com>
Diffstat (limited to 'coverage/jsonreport.py')
-rw-r--r--coverage/jsonreport.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/jsonreport.py b/coverage/jsonreport.py
index 0c3f313d..1f544b0d 100644
--- a/coverage/jsonreport.py
+++ b/coverage/jsonreport.py
@@ -60,6 +60,8 @@ class JsonReporter(object):
self.report_data["totals"].update({
'num_branches': self.total.n_branches,
'num_partial_branches': self.total.n_partial_branches,
+ 'covered_branches': self.total.n_executed_branches,
+ 'missing_branches': self.total.n_missing_branches,
})
json.dump(