https://github.com/searls/remote-capybara-cucumber-example
A bare-bones project directory for remotely testing apps with Cucumber + Capybara
https://github.com/searls/remote-capybara-cucumber-example
Last synced: 2 months ago
JSON representation
A bare-bones project directory for remotely testing apps with Cucumber + Capybara
- Host: GitHub
- URL: https://github.com/searls/remote-capybara-cucumber-example
- Owner: searls
- Created: 2011-01-20T00:36:45.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-10T15:13:24.000Z (over 13 years ago)
- Last Synced: 2024-10-19T23:06:58.522Z (7 months ago)
- Language: Ruby
- Homepage: about.me/searls
- Size: 91.8 KB
- Stars: 36
- Watchers: 5
- Forks: 15
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Testing a remote app with Cucumber+Capybara
Granted, this is a really simple combination, but I ran into a few hurdles on my first attempt, and thought someone might benefit from my feeding github this working, minimal example of using Cucumber and Capybara to execute web tests against a remote application.
git clone git://github.com/searls/remote-capybara-cucumber-example.git
cd remote-capybara-cucumber-example
bundle install
bundle exec cucumberWhich should produce output that looks something like:
Feature: Using Google
Scenario: Searching for a term # features/google.feature:3
Given I am on google.com # features/step_definitions/google_steps.rb:1
When I enter "pizza" # features/step_definitions/google_steps.rb:5
Then I should see results # features/step_definitions/google_steps.rb:91 scenario (1 passed)
3 steps (3 passed)
0m4.550s
The project is currently configured to use `:selenium` as the default driver, but that can be changed in `/features/support/env.rb`.