falsetto / angular-cucumber-example

testing angular apps using cucumber and protractor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular Cucumber Example

This is a working example of running Angular E2E tests using Cucumber.js, Protractor, and WebDriverJS.

Getting Started

  1. Install dependencies

     npm install
     bower install
    
  2. Start the application server

     grunt server
    

Running Tests

  1. Start the application server

     grunt server
    
  2. Start the selenium server

     grunt selenium
    
  3. Run the cucumber tests

     grunt test
    

Resources

TODO

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?

About

testing angular apps using cucumber and protractor


Languages

Language:CoffeeScript 97.3%Language:JavaScript 2.7%