From a71fdd26b34f2d945bd61c5216a8f443eaff2750 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 30 Sep 2013 21:39:32 +0200 Subject: [PATCH] fix usage docs for "-k" (addresses issue357) --- doc/en/usage.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/en/usage.txt b/doc/en/usage.txt index de3a501f4..f068db403 100644 --- a/doc/en/usage.txt +++ b/doc/en/usage.txt @@ -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::