summaryrefslogtreecommitdiff
path: root/coverage/jsonreport.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-04-11 16:21:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2020-04-11 16:21:41 -0400
commitb79005b3b7225497f55dfce872d72f9323ddf08c (patch)
tree974592d49d7c105959cc4ec118788ff580c7e0a0 /coverage/jsonreport.py
parentb1194fbc5ca33e41b1b8ab467e0c758d3080750b (diff)
downloadpython-coveragepy-git-b79005b3b7225497f55dfce872d72f9323ddf08c.tar.gz
New JSON info should be reported on individual files also.
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 1f544b0d..4287bc79 100644
--- a/coverage/jsonreport.py
+++ b/coverage/jsonreport.py
@@ -97,5 +97,7 @@ class JsonReporter(object):
reported_file['summary'].update({
'num_branches': nums.n_branches,
'num_partial_branches': nums.n_partial_branches,
+ 'covered_branches': nums.n_executed_branches,
+ 'missing_branches': nums.n_missing_branches,
})
return reported_file