Giter Club home page Giter Club logo

ukhomeoffice.sgmr-service's Introduction

sGMR Service

sGMR frontend service for sgmr-data-api

Requirements

  • npm 6.9.0
  • node v8.10.0

Index

Getting started

1. Clone this repo

Native development

2. Install package dependencies

npm install

3. Build development bundle (optional)

npm run build:dev

4. Start the application (optional)

npm start

Development with docker

2. Build the application Docker container

docker build -t sgmr-service .

3. Run the resulting Docker container

docker run -p 8080:8080 \
    --env API_BASE_URL=https://your.api.com \
    sgmr-service

Tests in native development

Setup your environment as described in Native development

3. Running jest tests

npm test

Linter in native development

Setup your environment as described in Native development

3. Running linter

npm run lint -- <directory>

E2E tests in native development

Setup your environment as described in Native development

There are two ways to run cypress tests, using the cypress test runner or running cypress tests using the command line.

By default tests run against local environment.

NOTE: You will need, the sgmr-service along with sgmr-data-api, and ref-data-api applications, to be running before triggering Cypress.

Running cypress test runner

Running all tests

npm run cypress:runner

Running all tests using environment settings from a configuration file

npm run cypress:runner -- --env configFile=dev

Once TestRunner launched, click on the interested spec inside folder cypress/integration/sGMR

Running cypress tests using the command line

Running all tests on local Environment, (It executes tests headless mode on Electron Browser)

npm run cypress:test:local

Running all tests on Development Environment, (It executes tests headless mode on Electron Browser)

npm run cypress:test:dev

Running a specific test

npm run cypress:test:local -- --spec cypress/integration/sGMR/register-user.spec.js

Running specific test with chrome browser

npm run cypress:test:local -- --browser chrome --spec cypress/integration/sGMR/user-register.spec.js

Running All E2E tests and generating mochawesome html report with screenshots

npm run cypress:test:report -- -b chrome

Running specific test and generating mochawesome html report with screenshots

npm run cypress:test:report -- -b chrome -s cypress/integration/sGMR/user-register.spec.js

ukhomeoffice.sgmr-service's People

Contributors

jennikate avatar bothees avatar rafenden avatar ajames14 avatar p3dr0migue1 avatar belindac-vd avatar joshuadiablito avatar hed95 avatar anilreddy999 avatar tomfitzherbert avatar andrewscrivener avatar dependabot[bot] avatar weparra 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.