Skip to content

Battery of automated tests for the CRUD endpoints of the LifeGuard API

Notifications You must be signed in to change notification settings

CaioF/API-automated-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integration tests

Battery of automated tests for the CRUD endpoints of the LifeGuard API

Tested on Ubuntu 20.04

Requirements

  1. PostgreSQL 13.2
    a. psql
  2. Node 14.16
    a. npm
    b. npx

Usage

  1. git clone git@github.com:CaioF/API-automated-tests.git
  2. cd API-automated-tests/
  3. npm install
  4. download api server and rename it to /test_server/api_test_server
  5. make sure you have PostgreSQL service running, but not connected to the test database
  6. ./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

TODO

  1. 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.
  2. Swagger parser was removed due to this error. A new swagger parser needs to be added.
  3. Finish adding the tests described on this spreadsheet

About

Battery of automated tests for the CRUD endpoints of the LifeGuard API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published