Skip to content

Commit

Permalink
Added documentation for the continue-on-failure flag
Browse files Browse the repository at this point in the history
  • Loading branch information
will133 committed Feb 24, 2018
1 parent f4cc45b commit c21eb72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/en/doctest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ itself::
>>> get_unicode_greeting() # doctest: +ALLOW_UNICODE
'Hello'

By default, pytest would report only the first failure for a given doctest. If
you want to continue the test even when you have failures, do::

pytest --doctest-modules --doctest-continue-on-failure


The 'doctest_namespace' fixture
-------------------------------
Expand Down

0 comments on commit c21eb72

Please sign in to comment.