summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-04-11 16:15:27 -0400
committerGitHub <noreply@github.com>2020-04-11 16:15:27 -0400
commitb1194fbc5ca33e41b1b8ab467e0c758d3080750b (patch)
treed28c625f6095e51d64b16ae41a6f8d906d3f73dc /coverage
parent42344f3a106b13a3feebf109007e3957c20c3160 (diff)
parentf5eb5f2159180db8cf0a1cf8b34bc96f1140dc96 (diff)
downloadpython-coveragepy-git-b1194fbc5ca33e41b1b8ab467e0c758d3080750b.tar.gz
Merge pull request #966 from SZVector/json_dump_all_attributes
Extending jsonreport.py to also include all branch attributes
Diffstat (limited to 'coverage')
-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(