summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-06-01 17:26:56 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-06-01 17:26:56 +0200
commit2a5c750ad151c51d875d41eb080e4c160e8a2627 (patch)
treeed35040a099c4c1aaac576ebae85cd71f11315dd /docs/ref
parent83e7555ffee305c1ea1e0655fd1f0aa35269533f (diff)
parentb7aa7c4ab4372d2b7994d252c8bc87f77dd217ae (diff)
Merge pull request #2726 from gchp/ticket-20550
Fixed #20550 -- Added ability to preserve test db between runs
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/django-admin.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 6bb67f01fc..9291479305 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -1310,6 +1310,17 @@ The ``--liveserver`` option can be used to override the default address where
the live server (used with :class:`~django.test.LiveServerTestCase`) is
expected to run from. The default value is ``localhost:8081``.
+.. django-admin-option:: --keepdb
+
+.. versionadded:: 1.8
+
+The ``--keepdb`` option can be used to preserve the test database between test
+runs. This has the advantage of skipping both the create and destroy actions
+which greatly decreases the time to run tests, especially those in a large
+test suite. If the test database does not exist, it will be created on the first
+run and then preserved for each subsequent run. Any unapplied migrations will also
+be applied to the test database before running the test suite.
+
testserver <fixture fixture ...>
--------------------------------