diff options
Diffstat (limited to 'conftest.py')
-rw-r--r-- | conftest.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/conftest.py b/conftest.py index 01b04d1..445657d 100644 --- a/conftest.py +++ b/conftest.py @@ -1,12 +1,18 @@ """py.test plugin configuration.""" def pytest_addoption(parser): - """Add an option for filtering the file tests run. + """Add options for filtering which file tests run. This has to be done in the project root; py.test doesn't (and can't) recursively look for conftest.py files until after it's parsed the command line. """ + parser.addoption('--include-ruby', + help='run tests imported from Ruby and sassc, most of which fail', + action='store_true', + dest='include_ruby', + ) + parser.addoption('--test-file-filter', help='comma-separated regexes to select test files', action='store', |