Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.08 KB

README.rst

File metadata and controls

37 lines (25 loc) · 1.08 KB

Django Protractor

Easily integrate your protractor tests in your django project, and get a fresh test database with every run.

Dependencies

You must have npm and protractor installed. See Protractor Documentation for more details

Quick Start

  1. Add "protractor" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
      ...
      'protractor',
    )
    
  2. Run the following command to run your protractor tests:

    python manage.py protrator
    

Configuration

There are a variety of options available:

  • --protrator-conf to specify a protractor config file. Default is protractor.conf.js
  • --runserver-command to specify a different runserver command. Default is runserver
  • --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 is localhost:8081