summaryrefslogtreecommitdiff
path: root/django/core/management/commands/test.py
AgeCommit message (Collapse)Author
2024-03-09Moved --failfast to DiscoverRunner.Adam Johnson
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-08-19Refs #31621 -- Fixed handling --parallel option in test management command ↵Mariusz Felisiak
and runtests.py. Regression in ae89daf46f83a7b39d599d289624c3377bfa4ab1. Thanks Tim Graham for the report.
2020-08-13Refs #31811 -- Added optional timing outputs to the test runner.Ahmad A. Hussein
2020-05-21Fixed #31546 -- Allowed specifying list of tags in ↵Hasan Ramezani
Command.requires_system_checks.
2018-08-23Fixed #29704 -- Fixed manage.py test --testrunner if it isn't followed by an ↵Matthijs Kooijman
equals sign.
2018-07-02Removed parser.add_arguments() arguments that match the defaults.Claude Paroz
2017-10-20Removed redundant inner imports.Mariusz Felisiak
2017-09-07Removed unneeded __init__() methods.Sergey Fedoseev
2017-04-01Removed implicit default store_true/false argparse args.Jon Dufresne
argparse automatically sets the default value for store_true/false arguments to its opposite.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2016-12-29Fixed #25415 -- Made DiscoverRunner run system checks.Adam Chainz
2016-11-03Fixed #27423 -- Simplified sys.exit() for indicating test failures.Ana Balica
2016-06-23Fixed #26791 -- Replaced LiveServerTestCase port ranges with binding to port 0.Tim Graham
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-03-05Refs #26315 -- Cleaned up argparse options in commands.Jon Dufresne
* Removed type coercion. Options created by argparse are already coerced to the correct type. * Removed fallback default values. Options created by argparse already have a default value. * Used direct indexing. Options created by argparse are always set. This eliminates the need to use dict.get().
2016-03-05Cleaned up tests to use call_command() instead of Command.execute().Jon Dufresne
2016-02-04Removed some leftover trailing commas.Simon Charette
2016-01-14Fixed #25999 -- Removed promotion of RemovedInNextVersionWarning to loud by ↵Tim Graham
default.
2015-09-23Refs #19973 -- Removed optparse support in management commands per ↵Tim Graham
deprecation timeline.
2015-09-09Allowed a port range for the liveserver by default.Aymeric Augustin
This is required for running tests in parallel.
2015-09-08Fixed #25350 -- Added alias --no-input for --noinput to management commands.Raphael Michel
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-06-14Converted test management command to argparseClaude Paroz
Keeping backwards compatibility with test_runner.option_list is tricky and would imply transforming an optparse.Option to an argparse.Action. I choose to introduce a backwards incompatible change because it only affects testing, not runtime behavior.
2014-06-14Fixed #19973 -- Replaced optparse by argparse in management commandsClaude Paroz
Thanks Tim Graham for the review.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2013-09-03Fixed #21026 -- Corrected help for manage.py test command.Carl Meyer
2013-05-31Improved the usage message of the test command.René Fleschenberg
2013-03-24Fixed #18985 -- ensure module level deprecations are displayedPreston Holmes
Also don't compete with -W CLI option. Thanks to Aymeric Augustin for the catch, and Claude Paroz for the patch.
2011-12-29Made sure `manage.py help test` works.Ramiro Morales
Thanks shige DOT abe AT nasa DOT gov for the report. Fixes #17477. Refs r16352. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17284 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-22Fixed #2879 -- Added support for the integration with Selenium and other ↵Julien Phalip
in-browser testing frameworks. Also added the first Selenium tests for `contrib.admin`. Many thanks to everyone for their contributions and feedback: Mikeal Rogers, Dirk Datzert, mir, Simon G., Almad, Russell Keith-Magee, Denis Golomazov, devin, robertrv, andrewbadr, Idan Gazit, voidspace, Tom Christie, hjwp2, Adam Nelson, Jannis Leidel, Anssi Kääriäinen, Preston Holmes, Bruno Renié and Jacob Kaplan-Moss. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-23Fixed #13760 -- Cleaned up unnecessary default option handling in a bunch of ↵Julien Phalip
management commands. Thanks to Paul McMillan for the report and to adamv and Claude Paroz for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17028 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-10Fixed #16185, #15675 -- Added the ability for test runners to define custom ↵Russell Keith-Magee
options, and to specify a custom test runner at the command line. Thanks to Dmitry Jemerov and Mikołaj Siedlarek for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-02Advanced deprecations in core.mail, core.commands, core.context_processors ↵Russell Keith-Magee
and core.handlers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to ↵Russell Keith-Magee
DeprecationWarnings, and removed 1.1 deprecated code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-18Fixed #12624 -- Modified test runners to be class based.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-03Fixed #11615 -- Changed test runners to use an exit status code of 1 for any ↵Gary Wilson Jr
number of failed tests. The previous behavior of using an exit status code equal to the number of failed tests produced incorrect exit status codes when the number of test failures was 256 or greater. Thanks to lamby for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-13Fixed #11613: Added a failfast option for test running. Thanks jukvalim and ↵Karen Tracey
Randy Barlow. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-02-28Fixed #10165 -- Use settings.TEST_RUNNER in runtests.pyMalcolm Tredinnick
This permits running Django's core tests under an alternative test runner. Most likely useful to non-CPython implementations, rather than much else (since Django's core tests might assume things about the test runner). Patch from Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-02Promoted --verbosity to be a top level option for all management commands. ↵Russell Keith-Magee
Also added -v as a consistent short form of --verbosity. This is mostly to save Malcolm's poor arthritic fingers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22Fixed #7847 -- Removed a whole bunch of unused imports from throughout the ↵Adrian Holovaty
codebase. Thanks, julien git-svn-id: http://code.djangoproject.com/svn/django/trunk@8046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-09Fixed #5369 -- Refactored the django-admin.py help system, allowing each ↵Adrian Holovaty
subcommand to register its own options. Thanks for the patch, Todd O'Bryan git-svn-id: http://code.djangoproject.com/svn/django/trunk@6075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-17Added fix for verbosity handling in loaddata and test commands.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5913 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-16Fixed #5178 -- Added missing 'import sys' in management/commands/test.py. ↵Russell Keith-Magee
Thanks for picking this up, michal@plovarna.cz. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5900 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-08-16Major refactoring of django.core.management -- it's now a package rather ↵Adrian Holovaty
than a 1730-line single module. All django-admin/manage.py commands are now stored in separate modules. This is backwards-incompatible for people who used django.core.management functions directly git-svn-id: http://code.djangoproject.com/svn/django/trunk@5898 bcc190cf-cafb-0310-a4f2-bffc1f526a37