1
0
mirror of https://github.com/django/django.git synced 2025-08-13 13:29:18 +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", dest="interactive",
help="Tells Django to NOT prompt the user for input of any kind.", 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( parser.add_argument(
"--testrunner", "--testrunner",
help="Tells Django to use specified test runner class instead of " help="Tells Django to use specified test runner class instead of "

View File

@ -706,6 +706,11 @@ class DiscoverRunner:
@classmethod @classmethod
def add_arguments(cls, parser): def add_arguments(cls, parser):
parser.add_argument(
"--failfast",
action="store_true",
help="Stops the test suite after the first failure.",
)
parser.add_argument( parser.add_argument(
"-t", "-t",
"--top-level-directory", "--top-level-directory",