Use DB Test Runner
**Use Case**: Specify the DB to run tests against. For example, use a legacy DB (un-managed), or a read-only DB where it is un-important to test creation, but important to test connection, trigger functions, and that models match schema. **Usage**: in DATABASES setting, add: 'TEST' :{ 'USEDB': 'your_test_DB_name_here', } and setting: `TEST_RUNNER = 'your_app.test_runner.UseDBTestRunner' ` Advantages over --keepdb: 1. DB specific setting for multi-DB setup (e.g., default can use normal test DB, while legacy can use a pre-existing table). 2. Can specify any DB table, including the one used by the app (for non-destructive tests, or dev DB) 3. Allows testing against DB where creation or copying is prohibitive.
- testrunner
- django-1.8