cucumber-poc
v0.2.4
Published
Cross platform HTML formatter for all implementations of Cucumber
Downloads
6
Readme
Angular Cucumber Example
This is a working example of running Angular E2E tests using Cucumber.js, Protractor, and WebDriverJS.
Getting Started
Install dependencies
npm install bower install
Start the application server
grunt server
Running Tests
Start the application server
grunt server
Start the selenium server
grunt selenium
Run the cucumber tests
grunt test
Resources
- Cucumber.js README
- Protractor README
- WebDriverJS Guide
- WebDriverJS WebDriver API
- WebDriverJS Locators API
TODO
- Quit driver after running all the cucumber tests. Can easily be added once the afterAll hook is added to cucumber.js
Questions
These are questions that I need to figure out due to my lack of familiarity with WebDriverJS and Selenium.
- Why does omitting
usingServer
allow running tests on Chrome without having the selenium server running? - Saving
world.coffee
triggers some actions on the selenium server. Assuming there is some file watching mechanism in place, what files are watched and which actions are taken?