Preparing for Cucumber Tests - HeHStudy/surveyor GitHub Wiki

##install chrome driver for cucumber tests

##Prepare testbed and run cucumber

$ bundle exec rake testbed
$ bundle exec rake cucumber

##Run specific cucumber tests Choose the feature set you want to run. Such as validations...

rake cucumber FEATURE=features/validations.feature

or one test in a feature set, such as "creating a question with a time answer". 73 below is the line number in the file.

rake cucumber FEATURE=features/validations.feature:73

pause after each step in a scenario by inserting @pause in the feature file like so:

  @javascript @pause
  Scenario: Creating a mandatory pick-any question selecting one