diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-05-08 18:14:17 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-05-08 18:14:17 -0400 |
commit | 750c6ec84b8f10a5f13b57428ea07cb3a3f0b277 (patch) | |
tree | 9edc0b6454a71e4d8b4aafef2d4ea3c9486c0487 /tests | |
parent | d7397a71324bcec6f12773f1d6deac3ab64e64e4 (diff) | |
download | python-coveragepy-750c6ec84b8f10a5f13b57428ea07cb3a3f0b277.tar.gz |
Correct the defaults for coverage.report(show_missing=None, skip_covered=None)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/coveragetest.py | 2 | ||||
-rw-r--r-- | tests/test_api.py | 2 | ||||
-rw-r--r-- | tests/test_plugins.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py index d79aee7..7625ce6 100644 --- a/tests/coveragetest.py +++ b/tests/coveragetest.py @@ -258,7 +258,7 @@ class CoverageTest( if report: frep = StringIO() - cov.report(mod, file=frep) + cov.report(mod, file=frep, show_missing=True) rep = " ".join(frep.getvalue().split("\n")[2].split()[1:]) self.assertEqual(report, rep) diff --git a/tests/test_api.py b/tests/test_api.py index 4c03851..f849695 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -548,7 +548,7 @@ class TestRunnerPluginTest(CoverageTest): self.start_import_stop(cov, "no_biggie") cov.combine() cov.save() - cov.report(["no_biggie.py"]) + cov.report(["no_biggie.py"], show_missing=True) self.assertEqual(self.stdout(), textwrap.dedent("""\ Name Stmts Miss Cover Missing -------------------------------------------- diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 2129076..fe43c4c 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -408,7 +408,7 @@ class GoodPluginTest(FileTracerTest): self.start_import_stop(cov, "caller") repout = StringIO() - total = cov.report(file=repout, include=["*.html"], omit=["uni*.html"]) + total = cov.report(file=repout, include=["*.html"], omit=["uni*.html"], show_missing=True) report = repout.getvalue().splitlines() expected = [ 'Name Stmts Miss Branch BrPart Cover Missing', @@ -497,7 +497,7 @@ class GoodPluginTest(FileTracerTest): self.start_import_stop(cov, "unsuspecting") repout = StringIO() - total = cov.report(file=repout) + total = cov.report(file=repout, show_missing=True) report = repout.getvalue().splitlines() expected = [ 'Name Stmts Miss Cover Missing', |