fix usage docs for "-k" (addresses issue357)

This commit is contained in:
holger krekel 2013-09-30 21:39:32 +02:00
parent 2c7d00579b
commit a71fdd26b3
1 changed files with 5 additions and 2 deletions

View File

@ -44,8 +44,11 @@ Specifying tests / selecting tests
Several test run options::
py.test test_mod.py # run tests in module
py.test somepath # run all tests below path
py.test -k string # only run tests whose names contain a string
py.test somepath # run all tests below somepath
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::