We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477fd70 commit 2e7ed00Copy full SHA for 2e7ed00
coverage/cmdline.py
@@ -384,7 +384,7 @@ def get_prog_name(self):
384
),
385
386
'erase': CmdOptionParser(
387
- "erase", GLOBAL_ARGS,
+ "erase", [Opts.input_coverage] + GLOBAL_ARGS,
388
description="Erase previously collected coverage data.",
389
390
tests/test_cmdline.py
@@ -307,6 +307,10 @@ def test_erase(self):
307
cov = Coverage()
308
cov.erase()
309
""")
310
+ self.cmd_executes("erase -c foo.cov", """\
311
+ cov = Coverage(data_file="foo.cov")
312
+ cov.erase()
313
+ """)
314
315
def test_version(self):
316
# coverage --version
0 commit comments