Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/test/runner.py
Commit message (Collapse)AuthorAgeFilesLines
* Prevented --parallel from crashing on Windows.Aymeric Augustin2015-09-141-0/+5
| | | | | | 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.
* And fixed merge accident :-(Aymeric Augustin2015-09-101-4/+2
|
* Adjusted previous commit.Aymeric Augustin2015-09-101-4/+5
| | | | Sigh.
* Refs #20461 -- Made tblib optional for a passing test run.Aymeric Augustin2015-09-101-1/+8
| | | | This was the original intent.
* Refs #20461 -- Fixed parallel test runner on Python 2.7.Collin Anderson2015-09-101-4/+2
| | | | textwrap.indent() is new in Python 3.3.
* Avoided running more test processes than necessary.Aymeric Augustin2015-09-101-1/+11
| | | | | | This reduces the time spent cloning databases. Thanks Tim for the suggestion.
* Made it easier to customize the parallel test runner.Aymeric Augustin2015-09-091-3/+8
| | | | | Subclass private APIs is marginally better than monkey-patching them, even if it doesn't make a big difference in practice.
* Propagated database clone settings to new connections.Aymeric Augustin2015-09-091-1/+5
|
* Acknoweldeged a limitation of the parallel test runner.Aymeric Augustin2015-09-091-0/+54
| | | | | | 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.)
* Cloned databases for running tests in parallel.Aymeric Augustin2015-09-091-5/+48
|
* Implemented a parallel test runner.Aymeric Augustin2015-09-091-8/+226
|
* Simplified deduplication of test databases.Aymeric Augustin2015-09-061-28/+22
| | | | | | | | | | | | 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.
* Stopped returning mirrors from setup_databases.Aymeric Augustin2015-09-061-5/+2
| | | | | The return value of setup_databases is only used as an argument for teardown_databases which doesn't need mirrors.
* Fixed #25357 -- Database deduplication on Oracle.Aymeric Augustin2015-09-061-7/+8
| | | | In order to reuse another database, Django must use set_as_test_mirror.
* Split setup_databases.Aymeric Augustin2015-09-061-6/+27
| | | | | It contained two sections separated by comments. It makes more sense to put each section in its own function.
* Moved an import to the toplevel.Aymeric Augustin2015-09-051-2/+1
|
* Fixed #19542: Made mirroring databases for tests work ↵Shai Berger2015-06-051-2/+2
| | | | | | | | | with Oracle No tests are provided because there is no sane way to test database settings within the Django test suite. Thanks Aymeric Augustin for review.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-1/+1
|
* Fixed #24118 -- Added --debug-sql option for tests.Marc Tamlyn2015-01-121-5/+62
| | | | | | | | | 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.
* Fixed #23992 -- Optimized reorder_suite functions using ↵Thomas Chaumeny2014-12-141-8/+8
| | | | OrderedSet
* Fixed #23742 -- Added an option to reverse tests order.wrwrwr2014-11-251-7/+17
| | | | | | | | | 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.
* Fixed #23707 -- Prevented discovery of duplicated testsClaude Paroz2014-10-231-3/+5
|
* Fixed #23421 -- Corrected TEST SERIALIZE setting.Tim Graham2014-09-241-1/+1
| | | | Thanks gkoller for the report.
* Converted test management command to argparseClaude Paroz2014-06-141-12/+12
| | | | | | | 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.
* Fixed #22487: Optional rollback emulation for migrated appsAndrew Godwin2014-06-091-1/+5
|
* Fixed #20550 -- Added keepdb argument to destroy_test_dbGreg Chapple2014-06-061-2/+2
|
* Fixed #20550 -- Added ability to preserve test db ↵Greg Chapple2014-05-281-5/+9
| | | | between runs
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* Fixed #22102 -- Made SimpleTestCase tests run before ↵Claude Paroz2014-04-121-2/+2
| | | | | | unittest.TestCase ones Thanks aptiko for the reporti and Tim Graham for the review.
* Reorganized the database test settingsShai Berger2014-03-091-10/+8
| | | | | | | | | | Change database test settings from "TEST_"-prefixed entries in the database settings dictionary to setting in a dictionary that is itself an entry "TEST" in the database settings. Refs #21775 Thanks Josh Smeaton for review.
* Fixed #21206 -- Fixed test discovery without labelsPreston Timmons2014-01-011-1/+3
| | | | | Added test to verify an empty label performs discovery on the current working directory.
* Fixed #21206 -- No longer run discovery if the test ↵Preston Timmons2013-12-261-3/+18
| | | | | | label doesn't point to a package or directory. Thanks thepapermen for the report and Carl Meyer for the review.
* Fixed E125 pep8 warningsChristopher Medrela2013-11-281-1/+1
|
* Fixed all E226 violationsAlex Gaynor2013-11-031-2/+2
|
* Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol2013-10-211-1/+1
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-1/+1
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Fixed #16534 -- Improved ability to customize DiscoverRunnerTim Graham2013-09-101-4/+8
| | | | | | Added DiscoverRunner.test_suite and .test_runner attributes. Thanks tomchristie for the suggestion and jcd for the patch.
* Fixed #20681 -- Prevented teardown_databases from ↵Tim Graham2013-07-131-2/+3
| | | | | | attempting to tear down aliases Thanks simonpercivall.
* Fixed #19940 -- Made test.runner.setup_databases ↵Tim Graham2013-07-051-1/+2
| | | | | | properly handle aliases for default db. Thanks simonpercivall.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-2/+2
| | | | Refs #20680.
* Fixed #17365, #17366, #18727 -- Switched to discovery ↵Carl Meyer2013-05-111-0/+289
test runner. Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.