https://github.com/nhsdigital/eligibility-signposting-api-regression-tests
https://github.com/nhsdigital/eligibility-signposting-api-regression-tests
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nhsdigital/eligibility-signposting-api-regression-tests
- Owner: NHSDigital
- License: other
- Created: 2025-08-04T10:55:15.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-04-21T11:20:45.000Z (about 2 months ago)
- Last Synced: 2026-04-21T13:26:59.584Z (about 2 months ago)
- Language: Python
- Size: 1.78 MB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://github.com/NHSDigital/eligibility-signposting-api-regression-tests/actions/workflows/regression_tests.yml)
[](https://sonarcloud.io/summary/new_code?id=NHSDigital_eligibility-signposting-api-regression-tests)
# Regression Tests
These tests will automate End-to-End regression testing for:
* [Eligibility Signposting API](https://github.com/NHSDigital/eligibility-signposting-api)
## General usage
These tests are run automatically during deployment and shouldn't need to be touched unless performing debugging or
adding/removing/changing test cases
If there are any test failures, this will report a failed build
When developing new features that need to be regression tested, you'll need to create a new PR for them on this repository. When you are happy with the tests and the feature, merge the regression tests first. This will create a new tagged release, which you should then reference in the counterpart feature pull request before merging the code.
## Setup
### Environment Variables
Environment Variable for this are used, however are not necessary to be set by the user.
### Preparing your development environment
You will need the following;
* Ubuntu (WSL)
* [ASDF](https://asdf-vm.com/guide/getting-started.html)
* You can now run the `make install-full` command
Once this is completed, everything you need to get going should now be installed.
You can now activate your virtual environment `source .venv/bin/activate`
## Developing/Debugging Tests
## Running the tests:
Before running the tests, authentication to AWS is necessary.
### Method 1 (Recommended):
Run the `make run-tests` command
You need to specify the following when executing this command:
* env= (options: dev test preprod)
* log_level= (options: INFO DEBUG)
Example: ` make run-tests env=dev log_level=INFO`
### Method 2:
Run the tests by calling the pytest command directly.
This allows for further customisation suitable for debugging purposes
For example:
`poetry run pytest --env=${env} --log-cli-level=${log_level} -s tests/test_story_tests.py`
**Note that we with the `poetry run` command before calling pytest**
### Commit to Git
Pre commit hooks run checks on your code to ensure quality before being allowed to commit.
You can perform this process by running:
`make pre-commit`
You may need to run this multiple times to ensure everything is ok before committing.