Skip to content

Commit bc501a2

Browse files
committed
Merge pull request #1070 from oleg-alexandrov/master
Documentation clarification
2 parents fbce3bb + 9d2d2d1 commit bc501a2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/en/getting-started.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ That's it. You can execute the test function now::
6666
test_sample.py:5: AssertionError
6767
======= 1 failed in 0.12 seconds ========
6868

69-
``pytest`` found the ``test_answer`` function by following :ref:`standard test discovery rules <test discovery>`, basically detecting the ``test_`` prefixes. We got a failure report because our little ``func(3)`` call did not return ``5``.
69+
We got a failure report because our little ``func(3)`` call did not return ``5``.
7070

7171
.. note::
7272

@@ -79,6 +79,12 @@ That's it. You can execute the test function now::
7979

8080
.. _`assert statement`: http://docs.python.org/reference/simple_stmts.html#the-assert-statement
8181

82+
Running multiple tests
83+
----------------------------------------------------------
84+
85+
``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 <test discovery>`.
86+
87+
8288
Asserting that a certain exception is raised
8389
--------------------------------------------------------------
8490

0 commit comments

Comments
 (0)