2

I have created a Django application which is deployed to AWS using Zappa in a CI/CD pipeline using the following commands:

- zappa update $ENVIRONMENT
- zappa manage $ENVIRONMENT "collectstatic --noinput"
- zappa manage $ENVIRONMENT "migrate"

However I want to add a test step to the CI/CD pipeline that would test the application much like in a way that I would test the application locally using the Django command:

python manage.py test

Is there a way to issue a zappa command to make run the "python manage.py test"? Do you have any suggestion?

1 Answers1

0

Here is the docs that have a docker setup that you can use for local testing (Docs here)

Also, this post from Ian Whitestone(a core Zappa contributor) uses the official AWS docker image for the same job. And he has given one example for local testing also (Blog post)