@@ -248,7 +248,7 @@ def test_annotate_output_dir(testdir):
248248 assert result .ret == 0
249249
250250
251- def test_html_output_dir (testdir , prop ):
251+ def test_html_output_dir (testdir ):
252252 script = testdir .makepyfile (SCRIPT )
253253
254254 result = testdir .runpytest ('-v' ,
@@ -267,6 +267,27 @@ def test_html_output_dir(testdir, prop):
267267 assert result .ret == 0
268268
269269
270+ def test_term_report_does_not_interact_with_html_output (testdir ):
271+ script = testdir .makepyfile (test_funcarg = SCRIPT_FUNCARG )
272+
273+ result = testdir .runpytest ('-v' ,
274+ '--cov=%s' % script .dirpath (),
275+ '--cov-report=term-missing:skip-covered' ,
276+ '--cov-report=html:' + DEST_DIR ,
277+ script )
278+
279+ result .stdout .fnmatch_lines ([
280+ '*- coverage: platform *, python * -*' ,
281+ 'Coverage HTML written to dir ' + DEST_DIR ,
282+ '*1 passed*' ,
283+ ])
284+ dest_dir = testdir .tmpdir .join (DEST_DIR )
285+ assert dest_dir .check (dir = True )
286+ assert sorted (dest_dir .visit ("**/*.html" )) == [dest_dir .join ("index.html" ), dest_dir .join ("test_funcarg_py.html" )]
287+ assert dest_dir .join ("index.html" ).check ()
288+ assert result .ret == 0
289+
290+
270291def test_xml_output_dir (testdir ):
271292 script = testdir .makepyfile (SCRIPT )
272293
0 commit comments