I have a Django project with several apps in it, each with unittests. However since some apps have very slow integration tests, I don't want to have them run every time on circleCI. To solve this problem I created a new base command as suggested here: How do I run tests for all my Django apps only?
I then created a separate list in settings.py called MY_INSTALLED_APPS, which are the apps I want to have tested regularly. The problem I'm having is that when I run the new command it creates an sqlite database for the tests to run on but the database doesn't seem to have any tables in it.
I'm trying to figure out how the sqlite database was populated when I run foreman run python manage.py test, because that seems to be handled automatically.
Aucun commentaire:
Enregistrer un commentaire