Battery of automated tests for the CRUD endpoints of the LifeGuard API
Tested on Ubuntu 20.04
- PostgreSQL 13.2
a. psql - Node 14.16
a. npm
b. npx
git clone [email protected]:CaioF/API-automated-tests.git
cd API-automated-tests/
npm install
- download api server and rename it to
/test_server/api_test_server
- make sure you have PostgreSQL service running, but not connected to the test database
./init.bash
When running the
init.bash
script for the first time, it might fail due to the fact that the database migration takes longer during the first initialization
- Server (
/test_server/api_test_server
) needs to be manually downloaded/renamed with every change pushed to the API's master repository. This could be automated via a workflow. - Swagger parser was removed due to this error. A new swagger parser needs to be added.
- Finish adding the tests described on this spreadsheet