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.
Comment (by mleszko):
Why add parameter when you can just create db in separate command?
--
Ticket URL: <https://code.djangoproject.com/ticket/33184#comment:1>
* status: new => closed
* resolution: => wontfix
Comment:
> I am running multiple test suites serially. ...
Assuming I've understood correctly, I think Mateusz's is right.
* Use `--keepdb` for all runs, which should create the DB on the first
pass.
* Run `dropdb` (Postgres) or `rm` (Sqlite) or equivalent, after the last
run.
For the `dropdb` step, I don't think that replicating existing tools
inside `django-admin` is going to be worth it.
--
Ticket URL: <https://code.djangoproject.com/ticket/33184#comment:2>