civil-general-apps-ccd-definition
Build (Dev)
run:
./bin/import-ccd-definition-dev.sh
Testing
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.
Optional configuration
To run tests with browser window open set SHOW_BROWSER_WINDOW=true
. By default, the browser window is hidden.
Smoke test
To run smoke tests enter yarn test:smoke
.
API test
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
.
Adding Git Conventions
Include the git conventions.
- Make sure your git version is at least 2.9 using the
git --version
command - Run the following command:
git 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
-
Get in touch with your Technical Lead so that they can get you unblocked
-
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.
License
This project is licensed under the MIT License - see the LICENSE file for details