Skip to content

benjamine/todomvc-spec

Repository files navigation

TODOMvc-Spec

Example cucumber spec for todomvc app

Usage

  • make && make test - run all tests inside docker
  • ./cucumber runs tests on the host machine, takes the same arguments as the standard cucumber cli
  • ./cucumber-docker run tests on docker containers, takes the same arguments as standard cucumber cli

Examples:

  # test only some features
  ./cucumber-docker --tags=@smoke
  ./cucumber-docker features/somefolder

  # run on your local firefox (firefox|chrome|safari)
  BROWSER=firefox ./cucumber

  # print all selenium debug output
  SELENIUMDEBUG=1 ./cucumber

  # run against production
  CONFIG=env/production ./cucumber

Emails

Emails are obtained accessing gmail using IMAP and OAuth2.

To generate new access tokens run ./run-plugin email-config and authorize using yourtestaccount@gmail.com (default user specified in config/users.yml).

To test email access run: ./run-plugin email-test

Driver Gotchas

Safari

WebDriver Extension needs to be enabled on Safari Preferences.

Internet Explorer

  • Add the site being tested to Trusted Sites

Mobile Safari (iPhone Simulator)

IMPORTANT: this needs the last version of XCode installed.

appium needs to be installed:

./appium-setup

for more details see https://github.com/appium/appium/blob/master/docs/en/appium-setup/running-on-osx.md

running:

CONFIG=iphone ./cucumber --tags=@mobile

For running iOS instruments without delay: https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/iwd_xcode7.md

About

example cucumber spec for todomvc app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages