grunt-webdriver-protractor
v0.0.3
Published
A simple grunt plugin that starts webdriver, runs protractor tests and stops webdriver
Downloads
3
Readme
grunt-webdriver-protractor
This plugin makes it easy to integrate your protractror tests as a part of your Grunt testing process. You need to have webdriver and protractor already installed and accessible on your PATH or this won't work.
I most certainly does not work on Windows either.
Getting Started
This plugin requires Grunt ~0.4.2
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-webdriver-protractor --save-dev
Prerequisites
Follow intructions on how to get started with Protractor
You need to be able to to launch webdriver webdriver start
and protractor protractor config.js
before using this plugin.
The plugin also works seamlessly if webdriver is already running.
Configuration
'webdriver-protractor': {
options: {
configFile: 'protractor.conf.js'
}
},
That's all there is. I'll add other Protractor options, or alternative ways to start webdriver in a later release.
Debug
If you have any issue using this plugin, you can run grunt webdriver-protractor -debug
to get more informations on what went wrong.
Test
grunt
Runs grunt-jshint and grunt-webdriver-protractor
Release History
- 0.0.3 Added a test exemple, bugfix
- 0.0.2 Documentation
- 0.0.1 Initial release
Known issues
- There are no tests. Yet! There will be in the next release.
- Does not work on windows.