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 | 5ffa5e5f76ca2ddddb4a31e38a1cc5b800e206d6 (patch) | |
tree | a4aec3a874ee7a316088fcf022837f8634b09257 /tests | |
parent | 6ff836f35e09dc8a107248b096cc133a423a4c11 (diff) | |
download | python-coveragepy-git-5ffa5e5f76ca2ddddb4a31e38a1cc5b800e206d6.tar.gz |
Fix brokenness in combining with an rcfile. #385
Diffstat (limited to 'tests')
-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 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'") |