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",