Skip to content

geobretagne/georchestra_runtime_tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

There are two ways of getting started. The first is to clone this git repository, install the gems and away you go. Like so:

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

However this means your test's version history will include my commits which may not be what you are after.

What you might want to do instead is download this project using the github "ZIP" link, remove the default google spec then start committing and modifying for your projects.

Hacking

All the setup is done inside spec_helper.rb and the specs are inside the spec/features directory. 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.

About

A test suite for geOrchestra to test the website at runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%