From 0a560eab550696dbc163d57258ef6f3cdb9511a3 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 9 Mar 2024 19:34:00 +0000 Subject: [PATCH] Moved --failfast to DiscoverRunner. --- django/core/management/commands/test.py | 5 ----- django/test/runner.py | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py index 2df6dbbecf9..7452b3fc6a3 100644 --- a/django/core/management/commands/test.py +++ b/django/core/management/commands/test.py @@ -40,11 +40,6 @@ class Command(BaseCommand): dest="interactive", help="Tells Django to NOT prompt the user for input of any kind.", ) - parser.add_argument( - "--failfast", - action="store_true", - help="Tells Django to stop running the test suite after first failed test.", - ) parser.add_argument( "--testrunner", help="Tells Django to use specified test runner class instead of " diff --git a/django/test/runner.py b/django/test/runner.py index 8bb40a34136..27eb9613e90 100644 --- a/django/test/runner.py +++ b/django/test/runner.py @@ -706,6 +706,11 @@ class DiscoverRunner: @classmethod def add_arguments(cls, parser): + parser.add_argument( + "--failfast", + action="store_true", + help="Stops the test suite after the first failure.", + ) parser.add_argument( "-t", "--top-level-directory",