summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdam Chainz <adam@adamj.eu>2016-03-18 14:24:13 +0000
committerTim Graham <timograham@gmail.com>2016-12-29 12:33:24 -0500
commit5eff8a77838540b27b6bef024dfccfd76008fd4c (patch)
treea02cf84f771decc66da14657b49c65b84081714d /docs
parent391c450fbae8c3301954563288147578a1ae4a6d (diff)
Fixed #25415 -- Made DiscoverRunner run system checks.
Diffstat (limited to 'docs')
-rw-r--r--docs/intro/tutorial05.txt2
-rw-r--r--docs/releases/1.11.txt4
-rw-r--r--docs/topics/testing/advanced.txt12
3 files changed, 18 insertions, 0 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt
index 438cb20045..c6e2827b6b 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -197,6 +197,7 @@ In the terminal, we can run our test::
and you'll see something like::
Creating test database for alias 'default'...
+ System check identified no issues (0 silenced).
F
======================================================================
FAIL: test_was_published_recently_with_future_question (polls.tests.QuestionMethodTests)
@@ -250,6 +251,7 @@ past:
and run the test again::
Creating test database for alias 'default'...
+ System check identified no issues (0 silenced).
.
----------------------------------------------------------------------
Ran 1 test in 0.001s
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt
index 0bf77e6e2d..a895f40c5f 100644
--- a/docs/releases/1.11.txt
+++ b/docs/releases/1.11.txt
@@ -434,6 +434,10 @@ Tests
* Added support for :meth:`python:unittest.TestCase.subTest`’s when using the
:option:`test --parallel` option.
+* ``DiscoverRunner`` now runs the system checks at the start of a test run.
+ Override the :meth:`.DiscoverRunner.run_checks` method if you want to disable
+ that.
+
URLs
~~~~
diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt
index 3cd60bc03c..192a62c516 100644
--- a/docs/topics/testing/advanced.txt
+++ b/docs/topics/testing/advanced.txt
@@ -402,12 +402,18 @@ testing behavior. This behavior involves:
#. Running ``migrate`` to install models and initial data into the test
databases.
+#. Running the :doc:`system checks </topics/checks>`.
+
#. Running the tests that were found.
#. Destroying the test databases.
#. Performing global post-test teardown.
+.. versionchanged:: 1.11
+
+ Running the system checks was added.
+
If you define your own test runner class and point :setting:`TEST_RUNNER` at
that class, Django will execute your test runner whenever you run
``./manage.py test``. In this way, it is possible to use any test framework
@@ -566,6 +572,12 @@ Methods
Creates the test databases by calling
:func:`~django.test.utils.setup_databases`.
+.. method:: DiscoverRunner.run_checks()
+
+ .. versionadded:: 1.11
+
+ Runs the :doc:`system checks </topics/checks>`.
+
.. method:: DiscoverRunner.run_suite(suite, **kwargs)
Runs the test suite.