summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2024-03-09 19:34:00 +0000
committerGitHub <noreply@github.com>2024-03-09 20:34:00 +0100
commit0a560eab550696dbc163d57258ef6f3cdb9511a3 (patch)
treedb9907681ca1b28d68a5795d28143be6b14443b6
parentfaeb92ea13f0c1b2cc83f45b512f2c41cfb4f02d (diff)
Moved --failfast to DiscoverRunner.
-rw-r--r--django/core/management/commands/test.py5
-rw-r--r--django/test/runner.py5
2 files changed, 5 insertions, 5 deletions
diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py
index 2df6dbbecf..7452b3fc6a 100644
--- a/django/core/management/commands/test.py
+++ b/django/core/management/commands/test.py
@@ -41,11 +41,6 @@ class Command(BaseCommand):
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 "
"the one specified by the TEST_RUNNER setting.",
diff --git a/django/test/runner.py b/django/test/runner.py
index 8bb40a3413..27eb9613e9 100644
--- a/django/test/runner.py
+++ b/django/test/runner.py
@@ -707,6 +707,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",
dest="top_level",