Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 824 Bytes

unit-testing.md

File metadata and controls

19 lines (11 loc) · 824 Bytes
description
How to run the Unit tests

Unit Testing

Front-end Testing

After installing all that's required in the Installation Guide, to simply run the test enter in terminal

$ npm run test

API Testing

There is a test case for each API endpoint which are made to ensure the endpoints are delivering the required information in the expected format. Prior to running the tests make sure the requirements from requirements.txt have been installed. In the terminal run the following:

$ pytest

Once the tests have been executed there will be a notification informing what tests have succeeded and what tests have failed. If the tests have failed, the issues will need attention before proceeding with the use of the application to ensure the data is correctly displayed to the user.