summaryrefslogtreecommitdiff
path: root/docs/topics/testing
AgeCommit message (Collapse)Author
2021-11-26[4.0.x] Fixed #33301 -- Clarified the type of arguments required by custom ↵Baptiste Mispelon
assertions. Backport of 528691d1b66b4ecf7bbb55f783fc919d40d4a235 from main
2021-10-19[4.0.x] Refs #32956 -- Changed docs to treat the acronym HTTP phonetically.David Smith
Backport of 69b0736fad1d1f0197409ca025b7bcdf5666ae62 from main
2021-09-21[4.0.x] Fixed broken links and redirects in docs.Mariusz Felisiak
Backport of 1d16dbc74563ec9aeb4bdff870d0fe5064667b26 from main
2021-08-30Fixed #33054 -- Made TestCase.captureOnCommitCallbacks() capture callbacks ↵Eugene Morozov
recursively.
2021-08-24Fixed #32552 -- Added logger argument to DiscoverRunner.Chris Jerdonek
2021-08-17Fixed #32964 -- Corrected 'setup'/'set up' usage in docs.Andrew Northall
2021-08-02Updated BaseDatabaseFeatures link in testing tools docs.Lauri Tirkkonen
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-07-27Refs #32956 -- Changed "afterwards" to "afterward" in docs and comments.David Smith
This also removes unnecessary comments with the previous spelling. AP Stylebook has a short entry to advise the preferred spelling for "en-us". "Afterwards" is preferred in British English.
2021-07-16Fixed #32655 -- Deprecated extra_tests argument for ↵Jacob Walls
DiscoverRunner.build_suite()/run_tests().
2021-07-08Fixed #24522 -- Added a --shuffle option to DiscoverRunner.Chris Jerdonek
2021-06-01Refs #32552 -- Added DiscoverRunner.log() to allow customization.Daniyal
Thanks Carlton Gibson, Chris Jerdonek, and David Smith for reviews.
2021-05-17Refs #32720 -- Updated various links in docs to avoid redirects and use HTTPS.Nick Pope
2021-03-26Fixed #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-26Added missing mode="rb" argument to open() call in Client.post() example in ↵John
docs.
2021-03-19Fixed #32556 -- Fixed handling empty string as non-boolean attributes value ↵Baptiste Mispelon
by assertHTMLEqual().
2021-03-19Refs #25735 -- Added tags/exclude_tags arguments to DiscoverRunner docs.Mariusz Felisiak
2021-03-19Added parallel argument to DiscoverRunner docs.Mariusz Felisiak
Follow up to cd9fcd4e8073490a52c9e79133ada4661cb7db38.
2021-03-19Corrected DiscoverRunner.build_suite() signature.Mariusz Felisiak
Follow up to 9012833af857e081b515ce760685b157638efcef.
2021-03-18Fixed #32547 -- Corrected notes about validation in HTML assertions docs.Hasan Ramezani
2021-03-17Fixed typo in docs/topics/testing/advanced.txt.Jozef
2021-03-05Fixed #32507 -- Added link to assertHTMLEqual() in assertInHTML() docs.Jacob Walls
2021-02-26Fixed typos in assertQuerysetEqual() docs and 1.6 release notes.Jacob Walls
2021-02-24Fixed #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-24Refs #31811 -- Corrected DiscoverRunner.setup_databases() signature.Mariusz Felisiak
Accidentally changed in 61a0ba43cfd4ff66f51a9d73dcd8ed6f6a6d9915.
2021-02-12Fixed #32438 -- Fixed typo in docs/topics/testing/tools.txt.David Smith
2021-01-14Removed versionadded/changed annotations for 3.1.Mariusz Felisiak
2020-11-06Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly.Hasan Ramezani
This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-11-04Fixed #32159 -- Ensured AsyncRequestFactory correctly sets headers.Carlton Gibson
2020-10-18Fixed typo in docs/topics/testing/tools.txt.Jacob Walls
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-09-03Fixed #31979 -- Made django.test.utils.setup_databases()'s time_keeper ↵Jon Dufresne
argument optional.
2020-08-13Refs #31811 -- Added optional timing outputs to the test runner.Ahmad A. Hussein
2020-07-13Fixed #30457 -- Added TestCase.captureOnCommitCallbacks().Adam Johnson
2020-07-10Fixed #31509 -- Made DiscoverRunner enable faulthandler by default.ovkulkarni
2020-07-10Refs #27430 -- Added buffer argument to DiscoverRunner docs.Mariusz Felisiak
2020-07-10Refs #30676 -- Added pdb argument to DiscoverRunner docs.Mariusz Felisiak
2020-07-04Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works.Jacob Walls
2020-05-15Fixed #31395 -- Made setUpTestData enforce in-memory data isolation.Simon Charette
Since it's introduction in Django 1.8 setUpTestData has been suffering from a documented but confusing caveat due to its sharing of attributes assigned during its execution with all test instances. By keeping track of class attributes assigned during the setUpTestData phase its possible to ensure only deep copies are provided to test instances on attribute retreival and prevent manual setUp gymnastic to work around the previous lack of in-memory data isolation. Thanks Adam Johnson for the extensive review.
2020-05-13Removed versionadded/changed annotations for 3.0.Mariusz Felisiak
2020-04-28Fixed broken links in docs.Mariusz Felisiak
2020-03-26Clarified async documentation.Adam Johnson
2020-03-18Fixed #31224 -- Added support for asynchronous views and middleware.Andrew Godwin
This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client.
2020-02-13Fixed #31250 -- Ignored processing instructions in ↵yura
assertXMLEqual()/assertXMLNotEqual().
2020-02-07Refs #31055 -- Made DiscoverRunner skip running system checks on unused test ↵Simon Charette
databases.
2020-01-27Refs #30997 -- Removed HttpRequest.is_ajax() usage.Claude Paroz
2019-12-20Added example of assertNumQueries() with "using" kwarg in testing topics docs.Garry Polley
2019-12-18Corrected some typos in documentation.Hasan Ramezani
2019-12-04Fixed #20456 -- Added example of directly testing CBVs in topics docs.Felipe Lee
2019-11-26Used :ticket: role in all tickets links.Sergey Fedoseev