From c21eb7292451aa53b5fd24bc7e8f2ea9fb7ab912 Mon Sep 17 00:00:00 2001 From: William Lee Date: Fri, 23 Feb 2018 22:42:22 -0600 Subject: [PATCH] Added documentation for the continue-on-failure flag --- doc/en/doctest.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/en/doctest.rst b/doc/en/doctest.rst index 61fbe04d4..cdbc34682 100644 --- a/doc/en/doctest.rst +++ b/doc/en/doctest.rst @@ -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 -------------------------------