From ef8c162b454a0f294e348b27bd52475f0e512e59 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 28 Jul 2015 05:23:24 -0400 Subject: Fix brokenness in combining with an rcfile. #385 --- tests/test_cmdline.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/test_cmdline.py') diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index a74498d..f0120bb 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'") -- cgit v1.2.1