diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-28 05:23:24 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-07-28 05:23:24 -0400 |
| commit | ef8c162b454a0f294e348b27bd52475f0e512e59 (patch) | |
| tree | 4a8c16027922004495059e8514334cfa8f8b9223 /tests/test_cmdline.py | |
| parent | be4cea389de959e48b9b4ace7de03a9e8e544048 (diff) | |
| download | python-coveragepy-ef8c162b454a0f294e348b27bd52475f0e512e59.tar.gz | |
Fix brokenness in combining with an rcfile. #385
Diffstat (limited to 'tests/test_cmdline.py')
| -rw-r--r-- | tests/test_cmdline.py | 15 |
1 files changed, 15 insertions, 0 deletions
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'") |
