summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthew Boehm <boehm.matthew@gmail.com>2016-06-02 18:04:45 -0400
committerMatthew Boehm <boehm.matthew@gmail.com>2016-06-02 18:04:45 -0400
commit0b5ceb5ce9fa3c2b31242bc533338ff2038f80f1 (patch)
treeaf1f267cb0789c3cc7f64cc3c6088657f28fb0ac /tests
parent0f4b897d4b637abafb8efb5607a8285587429fd9 (diff)
downloadpython-coveragepy-git-0b5ceb5ce9fa3c2b31242bc533338ff2038f80f1.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')
-rw-r--r--tests/test_cmdline.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index ee60ed46..8e2840b4 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", """\