Easily integrate your protractor tests in your django project, and get a fresh test database with every run.
You must have npm and protractor installed. See Protractor Documentation for more details
Add "protractor" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = ( ... 'protractor', )
Run the following command to run your protractor tests:
python manage.py protrator
There are a variety of options available:
--protrator-conf
to specify a protractor config file. Default isprotractor.conf.js
--runserver-command
to specify a different runserver command. Default isrunserver
--specs
to specify which protractor specs to run.--suite
to specify which protrator suite to run.--addrport
to specify which ipaddr:port to run the server on. Default islocalhost:8081