Does anyone have any strategies or techniques for running their unit tests faster in Django 1.8? My project has seven model modules containing twenty-one models (none of which are very complex). I run my tests using the default Django test runner on a 1.86 GHz Mac laptop with 4 GB of RAM against a local PostgreSQL 9.4.4 database. I'm finding that after upgrading to Django 1.8, my test suite takes longer to start up (about 10-11 seconds) than it takes to run the 180+ tests themselves (about 9 seconds). I know one strategy would be to use SQLite for testing but I'd prefer to run against my actual database server. I'm also using the
django-test-without-migrations package to avoid running migrations but that only speeds things up a little. Is there anything else I can do? The longer startup time for tests in Django 1.8 really makes it difficult to do true test-driven development.
Thanks.