summaryrefslogtreecommitdiff
path: root/django/test/runner.py
AgeCommit message (Collapse)Author
2021-03-17[3.2.x] Fixed #32560 -- Fixed test runner with --pdb and --buffer on fail/error.Adam Johnson
Backport of 45814af6197cfd8f4dc72ee43b90ecde305a1d5a from main
2020-11-28Fixed #32227 -- Prevented crash when setUpTestData() errors with --debug-sql.Adam Johnson
Thanks Mariusz Felisiak for the report.
2020-08-13Refs #31811 -- Added optional timing outputs to the test runner.Ahmad A. Hussein
2020-07-10Fixed #31509 -- Made DiscoverRunner enable faulthandler by default.ovkulkarni
2020-02-07Refs #31055 -- Made DiscoverRunner skip running system checks on unused test ↵Simon Charette
databases.
2019-12-09Fixed #27430 -- Added -b/--buffer option to DiscoverRunner.Baptiste Mispelon
2019-08-07Fixed #30676 -- Added --pdb option to test runner.Andrew Godwin
2019-04-30Fixed #30245 -- Added -k option to DiscoverRunner.François Freitag
2019-04-18Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, ↵Ramiro Morales
comments and hints.
2019-01-14Removed unnecessary string formatting of strings.Jon Dufresne
2019-01-10Fixed #28478 -- Make DiscoverRunner skip creating unused test databases.Simon Charette
SimpleTestCase.databases makes it possible to determine the set of databases required to run the discovered tests.
2018-12-05Reverted "Fixed #25251 -- Made data migrations available in ↵Tim Graham
TransactionTestCase when using --keepdb." This reverts commits b3b1d3d45fc066367f4fcacf0b06f72fcd00a9c6 and 9fa0d3786febf36c87ef059a39115aa1ce3326e8 due to reverse build failures for which a solution isn't forthcoming.
2018-11-29Refs #25251 -- Filtered out skipped tests when processing the test suite to ↵romgar
set _next_serialized_rollback.
2018-11-06Fixed #25251 -- Made data migrations available in TransactionTestCase when ↵romgar
using --keepdb. Data loaded in migrations were restored at the beginning of each TransactionTestCase and all the tables are truncated at the end of these test cases. If there was a TransactionTestCase at the end of the test suite, the migrated data weren't restored in the database (especially unexpected when using --keepdb). Now data is restored at the end of each TransactionTestCase.
2018-10-30Fixed #29866 -- Made DiscoverRunner do tests tear down if running checks or ↵Jayden Kneller
tests raises an exception.
2018-10-09Capitalized "Python" in docs and comments.Jon Dufresne
2018-07-02Removed parser.add_arguments() arguments that match the defaults.Claude Paroz
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-02-13Fixed #29106 -- Made DiscoverRunner display selected test tags.Sanyam Khurana
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2017-10-13Refs #28575 -- Allowed pickling Model.DoesNotExist and ↵Rachel Tobin
MultipleObjectsReturned classes.
2017-09-22Refs #26840 -- Removed django.test.runner.setup_databases() per deprecation ↵Tim Graham
timeline.
2017-09-11Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix.Jon Dufresne
2017-07-05Fixed #28360 -- Fixed test runner crash with --debug-sql on fail/error in ↵Sergey Fedoseev
subTest.
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-03-04Refs #27656 -- Updated remaining docstring verbs according to PEP 257.Anton Samarchyan
2017-01-25Refs #23919 -- Removed misc Python 2/3 references.Tim Graham
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-23Replaced dict() usage with dict literals.Jon Dufresne
Literals are faster and more idiomatic.
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2016-12-29Fixed #25415 -- Made DiscoverRunner run system checks.Adam Chainz
2016-10-06Fixed #27301 -- Prevented exceptions that fail unpickling from crashing the ↵Adam Wróbel
parallel test runner.
2016-08-26Fixed #26942 -- Added support for subtests during parallel testing.Chris Jerdonek
2016-08-17Fixed #26840 -- Added test.utils.setup/teardown_databases().Andreas Pelme
2016-08-12Fixed #27008 -- Added --debug-mode option to DiscoverRunner.Chris Jerdonek
2016-08-10Fixed #27019 -- Made teardown_test_environment() restore the old DEBUG.Chris Jerdonek
2016-08-09Fixed #27035 -- Eased changing settings.DEBUG for DiscoverRunner.Chris Jerdonek
2016-08-08Fixed #27028 -- Clarified failed parallel tests message.Adam Zapletal
2016-08-04Fixed #26981 -- Added DiscoverRunner.get_test_runner_kwargs().Chris Jerdonek
2016-08-02Fixed #26980 -- Added ParallelTestSuite.runner_class to aid subclassing.Chris Jerdonek
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-02-17Fixed #25735 -- Added support for test tags to DiscoverRunner.Jakub Paczkowski
Thanks Carl Meyer, Claude Paroz, and Simon Charette for review.
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-27Fixed #25826 -- Improved help text for the --parallel optionBaptiste Mispelon
This was overlooked in 81f5d63218851f90bd83c1263d9a427db84d6082.
2015-11-14Fixed #25647 -- Reverted "Simplified deduplication of test databases."Tim Graham
This reverts commit 49eee84245b1297a84ad4ddc2251e287ef585ea2 as it caused a regression with test mirrors.
2015-09-14Prevented --parallel from crashing on Windows.Aymeric Augustin
Since --parallel is documented not to work on Windows, it's better to ignore it and run without parallelization than to crash. For example this could simplify cross-platform test scripts.
2015-09-10And fixed merge accident :-(Aymeric Augustin
2015-09-10Adjusted previous commit.Aymeric Augustin
Sigh.
2015-09-10Refs #20461 -- Made tblib optional for a passing test run.Aymeric Augustin
This was the original intent.