generator-protractor
A Yeoman code generator for Protractor. Protractor is an end to end test framework for Angular applications built on top of webdriverJS.
Getting Started
Make sure you have Yeoman installed.
$ npm install -g yo
To install generator-protractor from npm, run:
$ npm install -g generator-protractor
###Usage
Create a new directory where you want to add your integration tests and and cd into it:
$ mkdir my-protractor-project
$ cd my-protractor-project
Run the generator:
$ yo protractor
###Generate a unit test
To generate a protractor unit test just type:
$ yo protractor:unit my-test-name
###Installing selenium and running the tests
You need to download selenium and start it in your local machine. Just run the following command:
$ ./node_modules/protractor/bin/install_selenium_standalone
Start the selenium standalone server with:
./selenium/start
Open another terminal and run the integration tests:
$ ./node_modules/protractor/bin/protractor protractor-config.js
Getting To Know Yeoman
If you'd like to get to know Yeoman better and meet some of his friends, Grunt and Bower, check out the complete Getting Started Guide.