1
0
mirror of https://github.com/django/django.git synced 2025-03-13 10:50:55 +00:00

Moved --failfast to DiscoverRunner.

This commit is contained in:
Adam Johnson 2024-03-09 19:34:00 +00:00 committed by GitHub
parent faeb92ea13
commit 0a560eab55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

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

View File

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