diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-06-01 17:26:56 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-06-01 17:26:56 +0200 |
| commit | 2a5c750ad151c51d875d41eb080e4c160e8a2627 (patch) | |
| tree | ed35040a099c4c1aaac576ebae85cd71f11315dd /docs/topics | |
| parent | 83e7555ffee305c1ea1e0655fd1f0aa35269533f (diff) | |
| parent | b7aa7c4ab4372d2b7994d252c8bc87f77dd217ae (diff) | |
Merge pull request #2726 from gchp/ticket-20550
Fixed #20550 -- Added ability to preserve test db between runs
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/testing/overview.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt index 10dbc70f39..2d9808f0bc 100644 --- a/docs/topics/testing/overview.txt +++ b/docs/topics/testing/overview.txt @@ -149,6 +149,14 @@ Tests that require a database (namely, model tests) will not use your "real" Regardless of whether the tests pass or fail, the test databases are destroyed when all the tests have been executed. +.. versionadded:: 1.8 + + You can prevent the test databases from being destroyed by adding the + :djadminopt:`--keepdb` flag to the test command. This will preserve the test + database between runs. If the database does not exist, it will first + be created. Any migrations will also be applied in order to keep it + up to date. + By default the test databases get their names by prepending ``test_`` to the value of the :setting:`NAME` settings for the databases defined in :setting:`DATABASES`. When using the SQLite database engine |
