Giter Club home page Giter Club logo

hmcts.ia-ccd-e2e-tests's Introduction

Immigration & Asylum CCD End2End Journey Tests

Purpose

This service is to help people to run End2End Journey Tests for Immigration & Asylum.

Getting Started

Prerequisites

Running the application requires the following tools to be installed in your environment:

Install dependencies

Install dependencies by executing the following command:

$ yarn install

Running the tests

### start the docker container:
$ docker-compose build
$ docker-compose up -d

### tests run inside the docker container:
$ docker-compose exec ia-ccd-e2e-tests bash
$ yarn install
$ yarn e2e

To run scenarios or features in parallel browser sessions:

TEST_E2E_NUM_BROWSERS=2 TEST_E2E_HEADLESS=false yarn run localTestParallelScenarios "--cucumberOpts.tags=@share-a-case or @RIA-585"

TEST_E2E_NUM_BROWSERS=2 TEST_E2E_HEADLESS=false yarn run localTestParallelFeatures "--cucumberOpts.tags=@share-a-case or @RIA-585"

Running the tests locally using docker

Tests can be executed against an instance of CCD running locally using docker.

Prerequisites

Running the tests locally requires the following tools to be installed in your environment:

  • docker
  • curl
  • psql (postgresql client)

Setup environment variables. In ia-docker there is a .local-env file which will setup the environment variables you need. Either source this in your profile or make sure you have these variables setup.

Follow the Quick start instructions here to get CCD running locally:

https://github.com/hmcts/ccd-docker#quick-start

Configure CCD with the users exported to your environment (do this once when you first run ccd-docker):

./bin/create-users.sh

Import the CCD Definition spreadsheet:

./bin/import-definition.sh /path/to/definition/spreadsheet

Other tasks

To ensure your code is clean (i.e. linting):

$ yarn lint

To perform NSP dependency checks:

$ yarn test:nsp

hmcts.ia-ccd-e2e-tests's People

Contributors

fantasticjamieburns avatar tarun-palisetty avatar bradsorour avatar makowalski avatar jkumar-moj avatar burale avatar lee365 avatar chrisgrimble avatar iguannago avatar rob-doherty avatar divisathyan avatar rohith-tiru avatar srihari-nakkala avatar mkayad avatar martin-bucinskas avatar alexbaeza avatar raghera avatar chrisdavecm avatar slyg avatar harmrai avatar ludo05 avatar mounikahmcts 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.