Giter Club home page Giter Club logo

ukforeignoffice.loi-smoke-tests's Introduction

Legalisation smoke tests

The legalisation_smoketests is an automated test suite for FCO Legalisation. Technology wise it is a Ruby project using:

It is capable of doing PNG screenshots and HTML snapshots in case of test failure.

Bootstrap project on Mac

You will require a fresh installation of ruby to run these tests.
To uninstall current ruby first check which version is running:
  ruby-v

If ruby exists, uninstall by running the following command (with the appropriate version number):
  rvm remove ruby-1.9.3-p448

To reinstall ruby with the clang compiler:
  rvm install ruby-1.9.3-p448 --with-gcc=clang

To complete the setup:
gem install bundler
gem install capybara-mechanize
brew install phantomjs
bundle install
bundle exec rspec

Run tests locally

./run-all-tests.sh

Requirements

To run the tests you need some environment variables set:

  • TEST_URL - e.g. http://localhost:1337
  • TEST_USER - The user name required for basic auth. Should be left empty if the url you test isn't protected
  • TEST_PASS - The password required for basic auth. Should be left empty if the url you test isn't protected

To test localhost for example you would:

export TEST_URL="http://localhost:1337โ€
export TEST_USER=""
export TEST_PASS=""

bundle exec rspec

ukforeignoffice.loi-smoke-tests's People

Contributors

simonmoore100 avatar markbarlow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.