#33184: Allow a way to create a new test database AND keep it for the next test 
run
---------------------------------------------+------------------------
               Reporter:  valentijnscholten  |          Owner:  nobody
                   Type:  New feature        |         Status:  new
              Component:  Testing framework  |        Version:  3.2
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  0
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 I am running multiple test suites serially. I'd like to ensure the first
 starts with a fresh test database, but reuse that database in the
 following test runs.

 Currently (to my undestanding) this is not possible with `--keepdb` or any
 of the other parameters.

 The `--keepdb` flag when running tests does two things:
 1) Reuse existing test database if found
 2) Leave test database intact after completing the tests

 So step 1 prevents me from obtaining my desired scenario.

 I could run the tests without `--keepdb` and use `--no-input` to force the
 creation of a new test database. But in that case the database will be
 destroyed after running the tests.

 Suggestion:
 - Add a '--createdb` parameter to "force" the creation of a new test
 database, while allowing `--keepdb` to be used in the same run.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33184>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/060.8b7adcce2fff2ade259b2c9d346718b4%40djangoproject.com.

Reply via email to