https://github.com/defra/phi-test-automation
Git repository for service phi-test-automation
https://github.com/defra/phi-test-automation
cdp journey test test-suite
Last synced: 7 months ago
JSON representation
Git repository for service phi-test-automation
- Host: GitHub
- URL: https://github.com/defra/phi-test-automation
- Owner: DEFRA
- License: other
- Created: 2024-09-23T13:39:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-11T10:51:42.000Z (11 months ago)
- Last Synced: 2025-01-12T19:08:56.659Z (9 months ago)
- Topics: cdp, journey, test, test-suite
- Language: Gherkin
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
phi-test-automation
The template to create a service that runs WDIO tests against an environment.
- [Requirements](#requirements)
- [Node.js](#nodejs)
- [Local](#local)
- [Setup](#setup)
- [Running local tests](#running-local-tests)
- [Debugging local tests](#debugging-local-tests)
- [Production](#production)
- [Debugging tests](#debugging-tests)
- [Licence](#licence)
- [About the licence](#about-the-licence)## Local Development
### Setup
Install application dependencies:
```bash
npm install
```### Running local tests
Start application you are testing on the url specified in `baseUrl` [wdio.local.conf.js](wdio.local.conf.js)
```bash
npm run test:local
```### Debugging local tests
```bash
npm run test:local:debug
```## Production
### Running the tests
Tests are run from the CDP-Portal under the Test Suites section. Before any changes can be run, a new docker image must be built, this will happen automatically when a pull request is merged into the `main` branch.
You can check the progress of the build under the actions section of this repository. Builds typically take around 1-2 minutes.The results of the test run are made available in the portal.
## Requirements of CDP Environment Tests
1. Your service builds as a docker container using the `.github/workflows/publish.yml`
The workflow tags the docker images allowing the CDP Portal to identify how the container should be run on the platform.
It also ensures its published to the correct docker repository.2. The Dockerfile's entrypoint script should return exit
## Licence
THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:
The following attribution statement MUST be cited in your products and applications when using this information.
> Contains public sector information licensed under the Open Government licence v3
### About the licence
The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable
information providers in the public sector to license the use and re-use of their information under a common open
licence.It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.