- Install the
shopozor
requirements
pip install shopozor/requirements.txt
This will install behave
and behave-django
(documented here) among other things.
- Set the following environment variable
export DJANGO_SETTINGS_MODULE=features.settings
- Run the tests
python manage.py behave
Would you want to preserve the same database from one run of behave to the other, you could launch it this way:
python manage.py behave --keepdb
This doesn't create a new database each time you run the acceptance tests which can be handy during acceptance tests development.
You can fine-tune behave
's parameters in the setup.cfg
configuration file.