Git Product home page Git Product logo

ministryofjustice.civil-claims-spec's Introduction

Civil Claims Spec

JS enabled: Build Status JS disabled: Build Status

Local installation

Clone repo and install gems

git clone https://github.com/ministryofjustice/civil-claims-spec.git

cd civil-claims-spec
bundle install

Run tests

Run devise_authentication_api

cd ../devise_authentication_api
bundle exec rackup -p 9393

Run backend API

cd ../civil-claims-backend-data-api
bundle exec rails s -p 3111

Run frontend

cd ../civil-claims-frontend-claimant
bundle exec rails s

Run specs

cd ../civil-claims-spec
rake

Run all the specs with selenium

rake browser=selenium

or run an individual feature with (see the advanced section below for details):

cucumber features/01_Start_a_case/01_Personal_details.feature --wip browser=selenium

Advanced Usage:

Command line help:

$ rake help

Runs cucumber features.

Usage:
rake [profile] [tag=tag_name]
Show the set of defined tag names using the 'list_tags' profile

Predefined cucumber profiles:

There are a small number of cucumber profiles set up which automate some common scenarios. Of note is demo mode, which uses the selenium browser & adds a pause to the end of each step definition. This is configured to test against the demo environment, for which the url is defined in support/config/environments.yml

Additionally there is a kamizake profile which runs every available scenario, even the scenarios tagged @wip or @no-automation

Finally, the list_tags profile dumps a crude list of all known tags to the console. This is a proof-of-concept that may one day evolve into a test automation progress-o-meter.

ministryofjustice.civil-claims-spec's People

Contributors

dotemacs avatar eliotf avatar jairodiaz avatar matthewsolle avatar maxf avatar symroe avatar whoojemaflip 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.