We want to automate testing of our API so that we aren't testing with CURL or Postman constantly.
Apparently Sqlx has a way of doing test databases. See here
This will need further investigation but what we want to test all endpoints as follows:
Test the happy path and the expected output / status code
Test all scenarios in which we send a non 500 code (ex: 400, 404, 401, 403) this will prevent us from regressing a useful error to a 500 error and maintain our status codes
We want to automate testing of our API so that we aren't testing with
CURL
or Postman constantly.Apparently Sqlx has a way of doing test databases. See here
This will need further investigation but what we want to test all endpoints as follows:
500
code (ex:400
,404
,401
,403
) this will prevent us from regressing a useful error to a500
error and maintain our status codes