File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -155,14 +155,14 @@ def summary(self, stream):
155
155
if 'html' in self .cov_report :
156
156
output = self .cov_report ['html' ]
157
157
with _backup (self .cov , "config" ):
158
- self .cov .html_report (ignore_errors = True , directory = output )
158
+ total = self .cov .html_report (ignore_errors = True , directory = output )
159
159
stream .write ('Coverage HTML written to dir %s\n ' % (self .cov .config .html_dir if output is None else output ))
160
160
161
161
# Produce xml report if wanted.
162
162
if 'xml' in self .cov_report :
163
163
output = self .cov_report ['xml' ]
164
164
with _backup (self .cov , "config" ):
165
- self .cov .xml_report (ignore_errors = True , outfile = output )
165
+ total = self .cov .xml_report (ignore_errors = True , outfile = output )
166
166
stream .write ('Coverage XML written to file %s\n ' % (self .cov .config .xml_output if output is None else output ))
167
167
168
168
return total
Original file line number Diff line number Diff line change @@ -396,7 +396,8 @@ def test_cov_min_50(testdir):
396
396
397
397
result = testdir .runpytest ('-v' ,
398
398
'--cov=%s' % script .dirpath (),
399
- '--cov-report=term-missing' ,
399
+ '--cov-report=html' ,
400
+ '--cov-report=xml' ,
400
401
'--cov-fail-under=50' ,
401
402
script )
402
403
You can’t perform that action at this time.
0 commit comments