diff options
author | Matthew Boehm <boehm.matthew@gmail.com> | 2016-06-02 18:04:45 -0400 |
---|---|---|
committer | Matthew Boehm <boehm.matthew@gmail.com> | 2016-06-02 18:04:45 -0400 |
commit | a7f29741a1d047acc350f68cf2b2aed5cfe20884 (patch) | |
tree | d441fb7332bb7ccb7d639a1be4a0a69bf7c3bb20 /tests/test_cmdline.py | |
parent | a687993e47316febf1319bb8c6c758b07293291f (diff) | |
download | python-coveragepy-a7f29741a1d047acc350f68cf2b2aed5cfe20884.tar.gz |
Add support for `coverage debug config`
Previously, coverage --debug=config worked, but `coverage debug config` didn't.
Fixes #454
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r-- | tests/test_cmdline.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index ee60ed4..8e2840b 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -218,7 +218,7 @@ class CmdLineTest(BaseCmdLineTest): """) def test_debug(self): - self.cmd_help("debug", "What information would you like: data, sys?") + self.cmd_help("debug", "What information would you like: config, data, sys?") self.cmd_help("debug foo", "Don't know what you mean by 'foo'") def test_debug_sys(self): @@ -227,6 +227,12 @@ class CmdLineTest(BaseCmdLineTest): self.assertIn("version:", out) self.assertIn("data_path:", out) + def test_debug_config(self): + self.command_line("debug config") + out = self.stdout() + self.assertIn("cover_pylib:", out) + self.assertIn("skip_covered:", out) + def test_erase(self): # coverage erase self.cmd_executes("erase", """\ |