/merchandise-in-baggage-frontend

Primary LanguageScalaApache License 2.0Apache-2.0

merchandise-in-baggage-frontend

Who uses the repo/service

Business travellers carrying commercial goods for both import or export.

How to start the service locally

sbt run This will only start the service as standalone but unable to interact with any other services including Backend and DataBase

SM profile : MERCHANDISE_IN_BAGGAGE_ALL sm MERCHANDISE_IN_BAGGAGE_ALL This will start all the required services to complete a journey

local url http://localhost:8281/declare-commercial-goods/start-import local url http://localhost:8281/declare-commercial-goods/start-export

How to run tests

./run_all_tests will run all the tests, including unit, UI and consumer contract tests. The consumer tests will generate contract files stored in the project root directory folder pact The generated contracts test will then being used from the Backend contract verifier by running the script: checkincheck.sh. However, currently contracts test only runs for local build.

UI Tests Repo

See the companion Reposirory https://github.com/hmrc/merchandise-in-baggage-ui-tests for UI tests using this repo.

1: sm2 --start MERCHANDISE_IN_BAGGAGE_ALL -wait 30 && sm2 --stop MERCHANDISE_IN_BAGGAGE_FRONTEND To run all mods services and stop this one,

2: ./run-locally.sh to run up this individual service locally

3: Run the UI tests

OR

Perform: sm2 --start MERCHANDISE_IN_BAGGAGE_ALL to run all mods services, and then separately run the UI tests. (won't test the branch)