diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-13 07:36:41 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-13 07:36:41 -0400 |
commit | caf9070228d1f3d0d8353f97fe6391795a510b78 (patch) | |
tree | 8387d1d625918c60154a592a329db7bd016f31eb /test/test_cmdline.py | |
parent | 92fd742413e7e7b5faa84af34bf8b503eba3d1a1 (diff) | |
download | python-coveragepy-caf9070228d1f3d0d8353f97fe6391795a510b78.tar.gz |
All commands are now available as new-style commands.
Diffstat (limited to 'test/test_cmdline.py')
-rw-r--r-- | test/test_cmdline.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py index 2a09f1a..23153eb 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -325,6 +325,21 @@ class ClassicCmdLineTest(CmdLineTest): class NewCmdLineTest(CmdLineTest): """Tests of the coverage.py command line.""" + def testAnnotate(self): + self.cmd_executes_same("annotate", "-a") + self.cmd_executes_same("annotate -i", "-a -i") + self.cmd_executes_same("annotate -d d1", "-a -d d1") + self.cmd_executes_same("annotate -o f", "-a -o f") + self.cmd_executes_same("annotate -o f,b", "-a -o f,b") + self.cmd_executes_same("annotate m1", "-a m1") + self.cmd_executes_same("annotate m1 m2 m3", "-a m1 m2 m3") + + def testCombine(self): + self.cmd_executes_same("combine", "-c") + + def testErase(self): + self.cmd_executes_same("erase", "-e") + def testHelp(self): self.cmd_executes("help", ".help_fn(topic='help')") @@ -333,6 +348,24 @@ class NewCmdLineTest(CmdLineTest): ".help_fn(parser='<CmdOptionParser:run>')") self.cmd_executes_same("help run", "run --help") + def testHtml(self): + self.cmd_executes_same("html", "-b") + self.cmd_executes_same("html -i", "-b -i") + self.cmd_executes_same("html -d d1", "-b -d d1") + self.cmd_executes_same("html -o f", "-b -o f") + self.cmd_executes_same("html -o f,b", "-b -o f,b") + self.cmd_executes_same("html m1", "-b m1") + self.cmd_executes_same("html m1 m2 m3", "-b m1 m2 m3") + + def testReport(self): + self.cmd_executes_same("report", "-r") + self.cmd_executes_same("report -i", "-r -i") + self.cmd_executes_same("report -m", "-r -m") + self.cmd_executes_same("report -o f", "-r -o f") + self.cmd_executes_same("report -o f,b", "-r -o f,b") + self.cmd_executes_same("report m1", "-r m1") + self.cmd_executes_same("report m1 m2 m3", "-r m1 m2 m3") + def testRun(self): self.cmd_executes_same("run f.py", "-e -x f.py") self.cmd_executes_same("run f.py -a arg -z", "-e -x f.py -a arg -z") |