run:
./bin/import-ccd-definition-dev.sh
The repo uses codeceptjs framework for e2e tests.
To install dependencies enter yarn install
.
To run e2e tests enter yarn test:e2e
in the command line.
To run tests with browser window open set SHOW_BROWSER_WINDOW=true
. By default, the browser window is hidden.
To run smoke tests enter yarn test:smoke
.
Before running API tests, you will need the SENDGRID_API_KEY
environment variable setup and to be running the service locally along with all containers.
To run API tests enter yarn test:api
.
git --version
commandgit config --local core.hooksPath .git-config/hooks
Once the above is done, you will be required to follow specific conventions for your commit messages and branch names.
If you violate a convention, the git error message will report clearly the convention you should follow and provide additional information where necessary.
Optional:
Install this plugin in Chrome: https://github.com/refined-github/refined-github
It will automatically set the title for new PRs according to the first commit message, so you won't have to change it manually.
Note that it will also alter other behaviours in GitHub. Hopefully these will also be improvements to you.
In case of problems
If the rare eventuality that the above is not possible, you can disable enforcement of conventions using the following command
git config --local --unset core.hooksPath
Still, you shouldn't be doing it so make sure you get in touch with a Technical Lead soon afterwards.
As an alternative for a development environment there is a procedure in place where after running the command below the required services for Civil are created in Preview under the developer's name, so these will be exclusively for the named developer use.
While connected to the VPN simply run one of the below commands from your project's (civil-ccd-definition) folder: Note: be sure to have Docker running
npx @hmcts/dev-env@latest && ./bin/setup-devuser-preview-env.sh
You can optionally specify a branch for CCD definitions and Camunda definitions like below or leave it blank to use master.
npx @hmcts/dev-env@latest && ./bin/setup-devuser-preview-env.sh camundaBranch dmnBranch waStandaloneBranch
Once the pods are up and running you can connect to them using a plugin called Mirrord on Intellij. https://mirrord.dev
If you want to clean up the environment just run:
npx @hmcts/dev-env@latest --delete
To run the specialised charts, where you can get Work Allocation for instance, run:
npx @hmcts/dev-env@latest --template values.enableWA.preview.template.yaml && ./bin/setup-devuser-preview-env.sh
This project is licensed under the MIT License - see the LICENSE file for details