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