summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 258a08ac..26046e7d 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 ...]