Document single-method usage

It is possible to run a single test method in a class, but the syntax is
not glaringly obvious and documentation would help people out.
This commit is contained in:
Evan Bender 2015-09-04 15:11:57 -04:00
parent 8625eb643e
commit 6ffb659282
1 changed files with 5 additions and 3 deletions

View File

@ -52,6 +52,8 @@ Several test run options::
py.test test_mod.py::test_func # only run tests that match the "node ID",
# e.g "test_mod.py::test_func" will select
# only test_func in test_mod.py
py.test test_mod.py::TestClass::test_method # run a single method in
# a single class
Import 'pkg' and use its filesystem location to find and run tests::