introduce --ignore option to ignore paths during collection

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-12-24 22:23:45 +01:00
parent cd96e52144
commit 6d46efa87a
4 changed files with 20 additions and 2 deletions

View File

@@ -51,6 +51,8 @@ def pytest_addoption(parser):
group._addoption('-x', '--exitfirst',
action="store_true", dest="exitfirst", default=False,
help="exit instantly on first error or failed test."),
group.addoption("--ignore", action="append", metavar="path",
help="ignore path during collection (multi-allowed).")
group._addoption('-k',
action="store", dest="keyword", default='',
help="only run test items matching the given "