| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-08-30 | Fixed #33054 -- Made TestCase.captureOnCommitCallbacks() capture callbacks ↵ | Eugene Morozov | |
| recursively. | |||
| 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-07-29 | Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵ | David Smith | |
| appropriate. | |||
| 2021-07-16 | Fixed #32655 -- Deprecated extra_tests argument for ↵ | Jacob Walls | |
| DiscoverRunner.build_suite()/run_tests(). | |||
| 2021-07-15 | Fixed #32929 -- Fixed handling query strings in AsyncRequestFactory. | pochangl | |
| 2021-07-12 | Fixed #32914 -- Prevented test --shuffle from skipping test methods. | Chris Jerdonek | |
| "test --shuffle" skipped test methods when test classes were mixed. This changes runner.py's reorder_tests() to group by TestCase class. Regression in 90ba716bf060ee7fef79dc230b0b20644839069f. | |||
| 2021-07-09 | Refs #24522 -- Fixed code comment about seeds in Shuffler.__init__(). | Chris Jerdonek | |
| 2021-07-08 | Fixed #24522 -- Added a --shuffle option to DiscoverRunner. | Chris Jerdonek | |
| 2021-07-05 | Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert". | Mateo Radman | |
| 2021-06-29 | Refs #32655 -- Improved error if iter_test_cases() is passed a string. | Chris Jerdonek | |
| 2021-06-23 | Fixed #32790 -- Ensured test Client handles redirects to domain indexes ↵ | tomhamiltonstubber | |
| without a specified trailing slash. | |||
| 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 | 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-08 | Refs #32355 -- Used addClassCleanup() in SimpleTestCase and SerializeMixin. | Mariusz Felisiak | |
| 2021-06-04 | Made SerializeMixin check lockfile attr at import time. | Adam Johnson | |
| 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-12 | Fixed #32416 -- Made ThreadedWSGIServer close connections after each thread. | Chris Jerdonek | |
| ThreadedWSGIServer is used by LiveServerTestCase. | |||
| 2021-04-12 | Refs #32416 -- Added LiveServerTestCase._make_connections_override() hook. | Chris Jerdonek | |
| 2021-04-02 | Fixed #32532 -- Made DiscoverRunner raise RuntimeError when a test label is ↵ | Chris Jerdonek | |
| a file path. | |||
| 2021-04-02 | Refs #32532 -- Replaced is_discoverable() with try_importing(). | Chris Jerdonek | |
| 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-29 | Simplified and optimized test_match_tags(). | Chris Jerdonek | |
| This simplifies and optimizes runner.py's test_match_tags() because it (1) uses isdisjoint() instead of intersection(), which involves constructing a new set, (2) eliminates a set operation when tags is falsey, (3) eliminates the need for a matched_tags variable, and (4) uses fewer not's, which should make it easier to parse and understand. | |||
| 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-24 | Fixed typo in DiscoverRunner --reverse help text. | Chris Jerdonek | |
| 2021-03-24 | Refs #32532 -- Added DiscoverRunner.load_tests_for_label(). | Chris Jerdonek | |
| 2021-03-19 | Fixed #32556 -- Fixed handling empty string as non-boolean attributes value ↵ | Baptiste Mispelon | |
| by assertHTMLEqual(). | |||
| 2021-03-19 | Refs #32556 -- Added django.test.html.normalize_attributes(). | Baptiste Mispelon | |
| 2021-03-18 | Fixed #32556 -- Fixed assertHTMLEqual() to handle empty string as boolean ↵ | Hasan Ramezani | |
| attributes value. | |||
| 2021-03-18 | Fixed #31370 -- Added support for parallel tests with --buffer. | Adam Johnson | |
| 2021-03-18 | Refs #31370 -- Made RemoteTestResult subclass unittest.TestResult. | Adam Johnson | |
| 2021-03-18 | Fixed #32547 -- Corrected notes about validation in HTML assertions docs. | Hasan Ramezani | |
| 2021-03-17 | Fixed #32560 -- Fixed test runner with --pdb and --buffer on fail/error. | Adam Johnson | |
| 2021-03-15 | Fixed #32540 -- Optimized DiscoverRunner.build_suite() by calling ↵ | Chris Jerdonek | |
| find_top_level() only if is_discoverable() is true. | |||
| 2021-03-15 | Refs #32540 -- Added django.test.runner.find_top_level(). | Chris Jerdonek | |
| 2021-03-12 | Reduced nesting inside DiscoverRunner.build_suite(). | Chris Jerdonek | |
| 2021-03-11 | Fixed #32529 -- Delayed creating a test suite in build_suite(). | Chris Jerdonek | |
| 2021-03-11 | Refs #32489 -- Doc'd and tested iter_test_cases() support for an iterable of ↵ | Chris Jerdonek | |
| tests. | |||
| 2021-03-10 | Refs #31235 -- Improved assertQuerysetEqual() warning message with stacklevel=2. | Claude Paroz | |
| 2021-03-09 | Fixed #32516 -- Fixed reorder_suite() with duplicates and reverse=True. | Chris Jerdonek | |
| 2021-03-08 | Refs #32489 -- Simplified filter_tests_by_tags(). | Chris Jerdonek | |
| 2021-03-08 | Refs #32489 -- Simplified partition_suite_by_case(). | Chris Jerdonek | |
| 2021-03-08 | Refs #32489 -- Removed unneeded partition_suite_by_type(). | Chris Jerdonek | |
| 2021-03-05 | Fixed #32489 -- Added iter_test_cases() to iterate over a TestSuite. | Chris Jerdonek | |
| This also makes partition_suite_by_type(), partition_suite_by_case(), filter_tests_by_tags(), and DiscoverRunner._get_databases() to use iter_test_cases(). | |||
| 2021-03-05 | Simplified for loop in reorder_suite(). | Chris Jerdonek | |
