Skip to content

NHSDigital/manage-vaccinations-in-schools-testing

Repository files navigation

Manage vaccinations in schools

Run MAVIS tests on TEST

Introduction

This is a test automation project to test the manage vaccinations in schools (MAVIS) project. It contains several positive and negative functional as well as regression tests.

It is currently configured to run on the TEST environment. The project utilizes the PyTest framework along with Playwright to manage and execute the tests.

Installation

This test pack requires Python 3.10 installed on the system or greater to run.

To execute the tests from your system, please follow the 4 easy steps below:

  1. Clone the repo to any local folder

    git clone https://github.com/NHSDigital/manage-vaccinations-in-schools-testing.git
  2. Create a virtual environment

    python -m venv .venv
  3. Install all dependencies

    pip install -r requirements.txt
  4. Create a .env file. Speak to a team member to get the contents of the .env file.

    cp .env.generic .env
  5. Finally, verify the setup by running a self-test

    pytest -m smoke

Once the self test passes, you are good to go.

Tests for individual endpoints can be executed using individual markers. For example:

pytest -m regression