From f99da9058f8569f8186515ba8d550fc7f019f5c1 Mon Sep 17 00:00:00 2001 From: Ammar Najjar Date: Thu, 17 May 2018 22:49:44 +0200 Subject: [PATCH 1/2] Issue #3295: Correct the usage of --last-failed-no-failures documentation - add the missing --last-failed argument in the presented examples, for they are missleading and lead to think that the missing argument is not needed. --- doc/en/cache.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/en/cache.rst b/doc/en/cache.rst index 57a091116..184c0607c 100644 --- a/doc/en/cache.rst +++ b/doc/en/cache.rst @@ -162,8 +162,8 @@ When no tests failed in the last run, or when no cached ``lastfailed`` data was found, ``pytest`` can be configured either to run all of the tests or no tests, using the ``--last-failed-no-failures`` option, which takes one of the following values:: - pytest --last-failed-no-failures all # run all tests (default behavior) - pytest --last-failed-no-failures none # run no tests and exit + pytest --last-failed --last-failed-no-failures all # run all tests (default behavior) + pytest --last-failed --last-failed-no-failures none # run no tests and exit The new config.cache object -------------------------------- From 9ddd5737743150d07b51fd354f441ec441409b68 Mon Sep 17 00:00:00 2001 From: Ammar Najjar Date: Thu, 17 May 2018 23:11:37 +0200 Subject: [PATCH 2/2] Issue #3295: add changelog doc entry for adding a missing argument in the examples --- changelog/3295.doc.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/3295.doc.rst diff --git a/changelog/3295.doc.rst b/changelog/3295.doc.rst new file mode 100644 index 000000000..c4e351efb --- /dev/null +++ b/changelog/3295.doc.rst @@ -0,0 +1 @@ +Correct the usage documentation of ``--last-failed-no-failures`` by adding the missing ``--last-failed`` argument in the presented examples, for they are missleading and lead to think that the missing argument is not needed.