From 9d2d2d17af02b68c3fab042aa9798f1a7b50be4e Mon Sep 17 00:00:00 2001 From: Oleg Alexandrov Date: Fri, 25 Sep 2015 21:41:17 -0700 Subject: [PATCH] Clarify documentation Fix doc markup --- doc/en/getting-started.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/en/getting-started.rst b/doc/en/getting-started.rst index aa40454d3..400a98173 100644 --- a/doc/en/getting-started.rst +++ b/doc/en/getting-started.rst @@ -66,7 +66,7 @@ That's it. You can execute the test function now:: test_sample.py:5: AssertionError ======= 1 failed in 0.12 seconds ======== -``pytest`` found the ``test_answer`` function by following :ref:`standard test discovery rules `, basically detecting the ``test_`` prefixes. We got a failure report because our little ``func(3)`` call did not return ``5``. +We got a failure report because our little ``func(3)`` call did not return ``5``. .. note:: @@ -79,6 +79,12 @@ That's it. You can execute the test function now:: .. _`assert statement`: http://docs.python.org/reference/simple_stmts.html#the-assert-statement +Running multiple tests +---------------------------------------------------------- + +``pytest`` will run all files in the current directory and its subdirectories of the form test_*.py or \*_test.py. More generally, it follows :ref:`standard test discovery rules `. + + Asserting that a certain exception is raised --------------------------------------------------------------