summaryrefslogtreecommitdiff
path: root/django/test/runner.py
AgeCommit message (Collapse)Author
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.
2015-09-06Fixed #25357 -- Database deduplication on Oracle.Aymeric Augustin
In order to reuse another database, Django must use set_as_test_mirror.
2015-09-06Split setup_databases.Aymeric Augustin
It contained two sections separated by comments. It makes more sense to put each section in its own function.
2015-09-05Moved an import to the toplevel.Aymeric Augustin
2015-06-05Fixed #19542: Made mirroring databases for tests work with OracleShai Berger
No tests are provided because there is no sane way to test database settings within the Django test suite. Thanks Aymeric Augustin for review.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-12Fixed #24118 -- Added --debug-sql option for tests.Marc Tamlyn
Added a --debug-sql option for tests and runtests.py which outputs the SQL logger for failing tests. When combined with --verbosity=2, it also outputs the SQL for passing tests. Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and discussion.
2014-12-14Fixed #23992 -- Optimized reorder_suite functions using OrderedSetThomas Chaumeny
2014-11-24Fixed #23742 -- Added an option to reverse tests order.wrwrwr
This is useful for debugging side effects affecting tests that are usually executed before a given test. Full suite and pair tests sort cases more or less deterministically, thus some test cross-dependencies are easier to reveal by reversing the order. Thanks Preston Timmons for the review.
2014-10-23Fixed #23707 -- Prevented discovery of duplicated testsClaude Paroz
2014-09-24Fixed #23421 -- Corrected TEST SERIALIZE setting.Tim Graham
Thanks gkoller for the report.
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-08Fixed #22487: Optional rollback emulation for migrated appsAndrew Godwin
2014-06-05Fixed #20550 -- Added keepdb argument to destroy_test_dbGreg Chapple