summaryrefslogtreecommitdiff
path: root/docs/internals/contributing/writing-code/unit-tests.txt
AgeCommit message (Collapse)Author
2015-02-11[1.8.x] Updated docs and runtests.py for removal of tests from contrib.Tim Graham
Backport of 7cf3a5786bc76374e743fbc0c1a1c8470a61f6c0 from master
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-01Fixed #23289 -- Added mock as a test dependency.Tim Graham
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-11-24Improved line breaking in runtests docs.wrwrwr
2014-11-12Fixed #23775 -- Added docs for --bisect and --pair runtests options.wrwrwr
Thanks Baptiste Mispelon for review.
2014-10-23Fixed versionchanged indentation in unit-tests.txt.Berker Peksag
2014-08-26Fixed clone URL of Django git repository.Duncan Parkes
2014-08-05Fixed broken links in docs.Tim Graham
2014-04-26Fixed #3214 -- Stopped parsing SQL with regex.Aymeric Augustin
Avoided introducing a new regex-based SQL splitter in the migrations framework, before we're bound by backwards compatibility. Adapted this change to the legacy "initial SQL data" feature, even though it's already deprecated, in order to facilitate the transition to migrations. sqlparse becomes mandatory for RunSQL on some databases (all but PostgreSQL). There's no API to provide a single statement and tell Django not to attempt splitting. Since we have a more robust splitting implementation, that seems like a good tradeoff. It's easier to add a new keyword argument later if necessary than to remove one. Many people contributed to both tickets, thank you all, and especially Claude for the review. Refs #22401.
2014-04-16Revert "Fixed #22401 -- Deprecated regular expression parsing of initial SQL ↵Tim Graham
in favor of installing sqlparse." This reverts commit 071c9337750b296d198cced56f3ffad0e176afb6. This introduced a regression on MySQL and custom SQL is deprecated.
2014-04-16Fixed #22457 -- Fixed contributing guide w/o github set-upJordi Yeh
The published commnand was not working when the user did not have the git client set-up with the public-key. Changed the contributing guide to clone it from https instead.
2014-04-09Fixed #22401 -- Deprecated regular expression parsing of initial SQL in ↵julien 'pouete' Godin
favor of installing sqlparse.
2014-03-16Fixed #21991 -- Added warning regarding tests failure if locales not installed.Anubhav Joshi
Thanks reidrac for the report.
2013-12-31Fixed #21701 -- Improved testing doc titles and added testing/tools.txt.Tim Graham
Thanks cjerdonek for the suggestion.
2013-12-25Unified listing of shell commands/codeYaroslav Halchenko
- use code-block:: bash - prefix the command with $
2013-12-24Updated a few doc paragraphs following the app-loading refactor.Aymeric Augustin
2013-12-08Updated a bunch of hyperlinks in documentationClaude Paroz
2013-12-02Fixed #21538 -- Added numpy to test/requirements/base.txtAlasdair Nicol
Thanks Tim Graham for the report
2013-11-09Fixed #16969 -- Don't connect to named database when possibleClaude Paroz
Thanks Andreas Pelme for the report and initial patch, and Aymeric Augustin, Shai Berger and Tim Graham for the reviews.
2013-10-23Fixed #19941 -- Removed sys.path hack when running the test suite.Tim Graham
Thanks jezdez for the suggestion.
2013-10-09Fixed #21222 - Documented that 'default' and 'other' must be different ↵Tim Graham
databases when running tests. Thanks vernondcole for the suggestion.
2013-09-25Fixed wording in unit tests documentation.Baptiste Mispelon
2013-09-06Fixed instructions for running a subset of tests.Tim Graham
2013-08-27Updated instructions for running contrib tests.Matt Robenolt
2013-07-24Fixed #19941 -- Modified runtests.py to make running the tests easier.Anssi Kääriäinen
1. Automatically use tests/../django as the Django version. 2. If settings aren't provided through --settings or DJANGO_SETTINGS_MODULE) then use test_sqlite.
2013-07-10Added some missing test requirements in the docs; refs #19196Tim Graham
2013-07-10Fixed #19196 -- Added test/requirementsTim Graham
2013-05-20Tweaked unit test 'quick start' explanation.Tim Graham
Thanks Jeremy Dunck.
2013-02-26Updated docs to reflect new tests layout.Florian Apolloner
Thanks to Ramiro Morales for the initial patch.
2013-02-25Fixed #19854 -- Turn Django's own Selenium tests off by default.Carl Meyer
2013-02-23Added test runner option to skip Selenium tests (#19854).Zbigniew Siciarz
2012-12-29Removed django.contrib.markup.Aymeric Augustin
2012-12-21Fixed #19497 -- Refactored testing docs.Ramiro Morales
Thanks Tim Graham for the review and suggestions.
2012-12-08Fixed #19389 -- Docs on the location of contrib apps tests.Aymeric Augustin
2012-11-17Fixed #16779 - Added a contributing tutorialTim Graham
Thank-you Taavi Taijala for the draft patch!
2012-10-11Fixed #16817 - Added a guide of code coverage to contributing docs.Tim Graham
Thanks Pedro Lima for the draft patch.
2012-06-28Updated obsolete links in the documentationClaude Paroz
2012-06-07Fixed #18436 -- Updated contributing docs for git.Aymeric Augustin
Most of the credit for this large patch goes to Anssi Kääriäinen. Many thanks to all the people who contributed to the discussion.
2011-12-22Fixed #2879 -- Added support for the integration with Selenium and other ↵Julien Phalip
in-browser testing frameworks. Also added the first Selenium tests for `contrib.admin`. Many thanks to everyone for their contributions and feedback: Mikeal Rogers, Dirk Datzert, mir, Simon G., Almad, Russell Keith-Magee, Denis Golomazov, devin, robertrv, andrewbadr, Idan Gazit, voidspace, Tom Christie, hjwp2, Adam Nelson, Jannis Leidel, Anssi Kääriäinen, Preston Holmes, Bruno Renié and Jacob Kaplan-Moss. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-14Fixed many more ReST indentation errors, somehow accidentally missed from ↵Luke Plant
[16955] git-svn-id: http://code.djangoproject.com/svn/django/trunk@16983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-19Fixed #16469 -- Improved documentation of Django internals, including the ↵Jannis Leidel
new backport policy. Many thanks to Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-31Fixed #16090, #16091, #16114 - Typos in docs; thanks teraom.Timo Graham
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-29Fixed #15992 -- Added more references to settings. Thanks, aaugustin.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-27Fixed #15796 -- Restructured the contributing documentation and added note ↵Jannis Leidel
about newly added Trac abilities. Many thanks to Julien Phalip. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16284 bcc190cf-cafb-0310-a4f2-bffc1f526a37