summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cmdline.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index a74498d4..f0120bb3 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -200,6 +200,21 @@ class CmdLineTest(BaseCmdLineTest):
.save()
""")
+ def test_combine_doesnt_confuse_options_with_args(self):
+ # https://bitbucket.org/ned/coveragepy/issues/385/coverage-combine-doesnt-work-with-rcfile
+ self.cmd_executes("combine --rcfile cov.ini", """\
+ .coverage(config_file='cov.ini')
+ .load()
+ .combine(None)
+ .save()
+ """)
+ self.cmd_executes("combine --rcfile cov.ini data1 data2/more", """\
+ .coverage(config_file='cov.ini')
+ .load()
+ .combine(["data1", "data2/more"])
+ .save()
+ """)
+
def test_debug(self):
self.cmd_help("debug", "What information would you like: data, sys?")
self.cmd_help("debug foo", "Don't know what you mean by 'foo'")