This repo is for the Decree Nisi Frontend and forms part of the online Divorce Application.
Install dependencies
yarn install
Start application
Then you can use the following commands in different terminal sessions:
docker-compose up redis
yarn mocks
yarn dev
The application will now be running on https://localhost:3000
.
When the application is up and running, a new endpoint will be exposed called "/session"
where you can view and edit the current session.
This is only be available locally and on AAT environment and is useful for debugging and testing.
yarn test
Run Functional tests locally
- create local.yml file in config folder with the contents:
tests:
functional:
proxy:
proxyByPass:
- run
yarn test:functional
Run Functional tests locally against AAT
- Create remote-config.json file
- Copy SCM config
- Add "TEST_URL" with AAT url
- Run
yarn test:functional:remote
-### Running additional tests in the Jenkins PR Pipeline
- Add one or more appropriate labels to your PR in GitHub. Valid labels are:
enable_full_functional_tests
enable_fortify_scan
- Trigger a build of your PR in Jenkins. Fortify scans will take place asynchronously as part of the Static Checks/Container Build step.
- Check the Blue Ocean view for live monitoring, and review the logs once complete for any issues.
- As Fortify scans execute during the Static Checks/Container Build step, you will need to ensure this is triggered by making a minor change to the PR, such as bumping the chart version.
This project is licensed under the MIT License - see the LICENSE.md file for details.