fix usage docs for "-k" (addresses issue357)
This commit is contained in:
parent
2c7d00579b
commit
a71fdd26b3
|
@ -44,8 +44,11 @@ Specifying tests / selecting tests
|
||||||
Several test run options::
|
Several test run options::
|
||||||
|
|
||||||
py.test test_mod.py # run tests in module
|
py.test test_mod.py # run tests in module
|
||||||
py.test somepath # run all tests below path
|
py.test somepath # run all tests below somepath
|
||||||
py.test -k string # only run tests whose names contain a string
|
py.test -k stringexpr # only run tests with names that match the
|
||||||
|
# the "string expression", e.g. "MyClass and not method"
|
||||||
|
# will select TestMyClass.test_something
|
||||||
|
# but not TestMyClass.test_method_simple
|
||||||
|
|
||||||
Import 'pkg' and use its filesystem location to find and run tests::
|
Import 'pkg' and use its filesystem location to find and run tests::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue