summaryrefslogtreecommitdiff
path: root/django/test/runner.py
AgeCommit message (Collapse)Author
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.
2015-09-10Refs #20461 -- Fixed parallel test runner on Python 2.7.Collin Anderson
textwrap.indent() is new in Python 3.3.
2015-09-10Avoided running more test processes than necessary.Aymeric Augustin
This reduces the time spent cloning databases. Thanks Tim for the suggestion.
2015-09-09Made it easier to customize the parallel test runner.Aymeric Augustin
Subclass private APIs is marginally better than monkey-patching them, even if it doesn't make a big difference in practice.
2015-09-09Propagated database clone settings to new connections.Aymeric Augustin
2015-09-09Acknoweldeged a limitation of the parallel test runner.Aymeric Augustin
Notably it will fail to report a Model.DoesNotExist exceptions because the class itself isn't pickleable. (Django has specific code to make its instances pickleable.)
2015-09-09Cloned databases for running tests in parallel.Aymeric Augustin
2015-09-09Implemented a parallel test runner.Aymeric Augustin
2015-09-06Simplified deduplication of test databases.Aymeric Augustin
Use the same code path for: - a database that has the same settings as another database (as defined by test_db_signature) - a database this is defined as a mirror of another database There's no conceptual difference between these two cases. Thanks Shai for the suggestion.
2015-09-06Stopped returning mirrors from setup_databases.Aymeric Augustin
The return value of setup_databases is only used as an argument for teardown_databases which doesn't need mirrors.