Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (15 sloc) 1.198 kb
1fc0e6d Initial commit
Jeffrey Jones authored
1 # Remote Application Testing Template
2
3 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.
4
5 Inspired by https://github.com/searls/remote-capybara-cucumber-example . Use that if you wish to use cucumber scenarios instead of rspec
6
7 ## Getting started
8
9 git clone git://github.com/rurounijones/remote-capybara-rspec-template.git
10 cd remote-capybara-rspec-template
11 bundle install
12 bundle exec rake spec
13
14 ## Hacking
15
16 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.
17
18 Modifications you might want to try are:
19
20 * 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.
21 * If selenium is not for you, what about some other drivers like capybara-webkit?
22 * Add some output options to a .rspec file (colours, formatters etc.)
23
24 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.