Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Latest commit

 

History

History
31 lines (20 loc) · 799 Bytes

acceptance-tests.md

File metadata and controls

31 lines (20 loc) · 799 Bytes

Running the Shopozor server's acceptance tests

  1. Install the shopozor requirements
pip install shopozor/requirements.txt

This will install behave and behave-django (documented here) among other things.

  1. Set the following environment variable
export DJANGO_SETTINGS_MODULE=features.settings
  1. 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.