summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-06 21:37:51 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-06 21:37:51 -0500
commit9793999927d16e0b9694db75207ec3ab618fb9da (patch)
tree4e88c6d5fb44e990b49341529c1d5783202437de
parent5a78a24b1ab693ebc5982b7f3e01400c784c24dd (diff)
downloadpython-coveragepy-9793999927d16e0b9694db75207ec3ab618fb9da.tar.gz
Yikes, I never had a test for --branch.
-rw-r--r--test/test_cmdline.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_cmdline.py b/test/test_cmdline.py
index 258a08a..26046e7 100644
--- a/test/test_cmdline.py
+++ b/test/test_cmdline.py
@@ -387,6 +387,14 @@ class NewCmdLineTest(CmdLineTest):
self.cmd_executes_same("run -L f.py", "-e -x -L f.py")
self.cmd_executes_same("run --timid f.py", "-e -x --timid f.py")
self.cmd_executes_same("run", "-x")
+ self.cmd_executes("run --branch foo.py", """\
+ .coverage(cover_pylib=None, data_suffix=False, timid=None, branch=True)
+ .erase()
+ .start()
+ .run_python_file('foo.py', ['foo.py'])
+ .stop()
+ .save()
+ """)
def testXml(self):
# coverage xml [-i] [--omit DIR,...] [FILE1 FILE2 ...]