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:
parent
faeb92ea13
commit
0a560eab55
@ -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 "
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user