Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A minimal template for remote application testing with rspec and capybara
Ruby
Tree: 1fc0e6d7c0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
spec
Gemfile
Gemfile.lock
README.md
Rakefile
spec_helper.rb

README.md

Remote Application Testing Template

This template can be used as the minimal base for testing remote applications. It uses a combination of Rspec and Capybara to do the testing.

Inspired by https://github.com/searls/remote-capybara-cucumber-example . Use that if you wish to use cucumber scenarios instead of rspec

Getting started

git clone git://github.com/rurounijones/remote-capybara-rspec-template.git
cd remote-capybara-rspec-template
bundle install
bundle exec rake spec

Hacking

All the setup is done inside spec_helper.rb and the specs are inside the spec directory (and sub-directories). RSpec expects to find files that have a *_spec.rb naming format.

Modifications you might want to try are:

  • If you have access to the remote site's database then include active_record (Or your ORM/ODM of choice), factory_girl and database_cleaner and automatically setup test data.
  • If selenium is not for you, what about some other drivers like capybara-webkit?
  • Add some output options to a .rspec file (colours, formatters etc.)

This template was extracted from an automated test suite for a remote .Net application which used all of the above, so it is possible.

Something went wrong with that request. Please try again.