A Grunt plugin for running Protractor runner.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-protractor-runner --save-dev
In your project's Gruntfile, add a section named
protractor to the data object passed into
A protractor config file.
If true, grunt process continues even if the test fails. This option is useful when using with grunt watch. If false, grunt process stops when the test fails.
If true, grunt will pass 'debug' as second argument to protractor CLI to enable node CLI debugging as described in Protractor Debugging documentation.
Arguments passed to the command. Supported arguments are below.
string: A running selenium address to use
string: Location of the standalone selenium server .jar file
string: Optional port for the standalone selenium server
string: URL to prepend to all relative paths
string: Element housing ng-app, if not html or body
array: Array of spec files to test. Ex.
boolean: Print stack trace on error
boolean: Print full spec names
npm install, you need to run script
node_modules/protractor/bin/install_selenium_standalone to download
npm test to test the module. You will encounter these.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.