#20461: Support for running Django tests in parallel -------------------------------------+------------------------------------- Reporter: senko | Owner: aaugustin Type: | Status: closed Cleanup/optimization | Component: Testing framework | Version: master Severity: Normal | Resolution: fixed Keywords: 1.9 | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by frankoid): Is the naming strategy for extra test databases documented anywhere? I tried to find this info in the docs but couldn't. Based on get_test_db_clone_settings(self, number) in the code it looks like the extra databases use the test database name as defined in the DATABASES setting with _<number> appended. It might also be worth documenting how to set up permissions when using MySQL. When I use Django with PostgreSQL then I grant the PostgreSQL user used by Django permission to create databases (with any name) so I won't need to change anything for parallel testing to work. However when I use MySQL then I usually grant the MySQL user used by Django permission on specific databases, i.e. mydjangodb and mydjangodb_test, so I think I'll need to grant more permissions for parallel testing to work. I'm not aware of a way to grant permission on mydjangodb_test_* without granting permission on all databases (including existing ones), but I haven't researched this in depth. -- Ticket URL: <https://code.djangoproject.com/ticket/20461#comment:28> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.32f7b2e9e96b62c590e25a3224876675%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.