| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-07-29 | Fixed #36531 -- Added forkserver support to parallel test runner. | Mariusz Felisiak | |
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2025-01-20 | Fixed #36005 -- Dropped support for Python 3.10 and 3.11. | Mariusz Felisiak | |
| 2024-10-24 | Refs #35844 -- Fixed tests for test --parallel option on Python 3.14+. | Mariusz Felisiak | |
| "forkserver" is the new default on POSIX systems, and Django doesn't support parallel tests with "forkserver": https://github.com/python/cpython/commit/b65f2cdfa77d8d12c213aec663ddaaa30d75a4b2 | |||
| 2024-01-26 | Applied Black's 2024 stable style. | Mariusz Felisiak | |
| https://github.com/psf/black/releases/tag/24.1.0 | |||
| 2023-08-31 | Fixed #34210 -- Added unittest's durations option to the test runner. | David Smith | |
| 2022-03-15 | Fixed #31169 -- Adapted the parallel test runner to use spawn. | David Smith | |
| Co-authored-by: Valz <ahmadahussein0@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2022-02-03 | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | |
| In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) | |||
| 2021-11-08 | Fixed #33264 -- Made test runner return non-zero error code for unexpected ↵ | Baptiste Mispelon | |
| successes. | |||
| 2021-08-24 | Fixed #32552 -- Added logger argument to DiscoverRunner. | Chris Jerdonek | |
| 2021-08-19 | Refs #31621 -- Fixed handling --parallel option in test management command ↵ | Mariusz Felisiak | |
| and runtests.py. Regression in ae89daf46f83a7b39d599d289624c3377bfa4ab1. Thanks Tim Graham for the report. | |||
| 2021-08-05 | Fixed #32988 -- Prevented creation of more test databases than TestCases. | Mariusz Felisiak | |
| DiscoverRunner.parallel is used in setup_databases() and teardown_databases() to control the number of test databases. Regression in cb6c19749d342c3dc0f97d89ff6887b220cf45b8. | |||
| 2021-08-03 | Fixed #31621 -- Added support for '--parallel auto' to test management command. | Adam Johnson | |
| 2021-08-03 | Refs #31621 -- Added more tests for test --parallel option. | Adam Johnson | |
| 2021-07-08 | Fixed #24522 -- Added a --shuffle option to DiscoverRunner. | Chris Jerdonek | |
| 2021-07-07 | Used more specific unittest assertions in tests. | Mads Jensen | |
| 2021-06-10 | Fixed #32609 -- Updated runtests.py to support directory path test labels. | Chris Jerdonek | |
| For example, with this change, the following now works from the tests directory: $ ./runtests.py view_tests/tests/ | |||
| 2021-06-10 | Fixed typo in tests/test_runner/test_discover_runner.py. | Mariusz Felisiak | |
| 2021-06-10 | Refs #27734 -- Prevented creation of more parallel workers than TestCases. | Ceesjan Luiten | |
| The parallel test runner uses multiple workers to distribute the workload. These workers are assigned a worker ID using a globally incremented variable, which determines what test database to connect to. When the worker ID surpasses the test database IDs Django will crash. This reduce likelihood of crashing parallel tests because ParallelTestSuite will no longer create more workers than TestCases. It won't eliminate the problem completely though because there are other circumstances in which new workers can be created which can then be assigned an "illegal" worker ID. | |||
| 2021-06-03 | Fixed #32808 -- Prevented DiscoverRunner.build_suite() from mutating test ↵ | Mariusz Felisiak | |
| loader patterns. Thanks Chris Jerdonek for the report and reviews. | |||
| 2021-06-02 | Refs #32641 -- Made DiscoverRunner's "Found X tests" message work for ↵ | Chris Jerdonek | |
| finding one test. This also removes passing level to log() as logging.INFO is the default. | |||
| 2021-06-01 | Refs #32552 -- Added DiscoverRunner.log() to allow customization. | Daniyal | |
| Thanks Carlton Gibson, Chris Jerdonek, and David Smith for reviews. | |||
| 2021-04-15 | Fixed #32641 -- Made DiscoverRunner print the number of found tests. | girishsontakke | |
| Thanks Chris Jerdonek for reviews. | |||
| 2021-04-02 | Fixed #32532 -- Made DiscoverRunner raise RuntimeError when a test label is ↵ | Chris Jerdonek | |
| a file path. | |||
| 2021-03-30 | Fixed #29127 -- Prevented DiscoverRunner from hiding tagged test with syntax ↵ | Chris Jerdonek | |
| errors. This mades _FailedTest objects always match tags in DiscoverRunner. | |||
| 2021-03-26 | Fixed #32591 -- Made DiscoverRunner order _FailedTest objects first. | Chris Jerdonek | |
| Failures detected when loading tests are ordered before all of the above for quicker feedback. This includes things like test modules that couldn't be found or that couldn't be loaded due to syntax errors. | |||
| 2021-03-18 | Fixed #31370 -- Added support for parallel tests with --buffer. | Adam Johnson | |
| 2021-02-24 | Fixed #32446 -- Deprecated SERIALIZE test database setting. | Simon Charette | |
| Whether or not the state of a test database should be serialized can be inferred from the set of databases allowed to be access from discovered TestCase/TransactionTestCase enabling the serialized_rollback feature which makes this setting unnecessary. This should make a significant test suite bootstraping time difference on large projects that didn't explicitly disable test database serialization. | |||
| 2021-02-10 | Fixed #32355 -- Dropped support for Python 3.6 and 3.7 | Mariusz Felisiak | |
| 2020-08-13 | Refs #31811 -- Added optional timing outputs to the test runner. | Ahmad A. Hussein | |
| 2020-07-10 | Fixed #31509 -- Made DiscoverRunner enable faulthandler by default. | ovkulkarni | |
| 2020-01-20 | Refs #31117 -- Made various tests properly handle unexpected databases aliases. | Matthijs Kooijman | |
| - Used selected "databases" instead of django.db.connections. - Made routers in tests.migrations skip migrations on unexpected databases. - Added DiscoverRunnerGetDatabasesTests.assertSkippedDatabases() hook which properly asserts messages about skipped databases. | |||
| 2019-12-09 | Fixed #27430 -- Added -b/--buffer option to DiscoverRunner. | Baptiste Mispelon | |
| 2019-12-09 | Refs #30676 -- Added test for invalid --pdb and --parallel usage in ↵ | Mariusz Felisiak | |
| DiscoverRunner. | |||
| 2019-04-30 | Fixed #30245 -- Added -k option to DiscoverRunner. | François Freitag | |
| 2019-01-10 | Fixed #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-05 | Reverted "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-29 | Refs #25251 -- Filtered out skipped tests when processing the test suite to ↵ | romgar | |
| set _next_serialized_rollback. | |||
| 2018-11-27 | Switched TestCase to SimpleTestCase where possible in Django's tests. | Tim Graham | |
| 2018-11-06 | Fixed #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-02-13 | Fixed #29106 -- Made DiscoverRunner display selected test tags. | Sanyam Khurana | |
| 2018-01-08 | Fixed #28869 -- Made tagged test classes and methods inherit tags from parents. | Will Ayd | |
| 2018-01-04 | Reorganized test_runner test apps. | Tim Graham | |
| 2017-05-04 | Fixed #28160 -- Prevented hiding GDAL exceptions when it's not installed. | Tim Graham | |
| 2016-08-12 | Fixed #27008 -- Added --debug-mode option to DiscoverRunner. | Chris Jerdonek | |
| 2016-08-09 | Fixed #27035 -- Eased changing settings.DEBUG for DiscoverRunner. | Chris Jerdonek | |
| 2016-08-04 | Fixed #26981 -- Added DiscoverRunner.get_test_runner_kwargs(). | Chris Jerdonek | |
| 2016-02-17 | Fixed #25735 -- Added support for test tags to DiscoverRunner. | Jakub Paczkowski | |
| Thanks Carl Meyer, Claude Paroz, and Simon Charette for review. | |||
