Added documentation for the continue-on-failure flag

This commit is contained in:
William Lee 2018-02-23 22:42:22 -06:00
parent f4cc45bb41
commit c21eb72924
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ itself::
>>> get_unicode_greeting() # doctest: +ALLOW_UNICODE >>> get_unicode_greeting() # doctest: +ALLOW_UNICODE
'Hello' '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 The 'doctest_namespace' fixture
------------------------------- -------------------------------