boolean-uk / software-developer

0 stars 0 forks source link

Postman tests for api exercises #100

Open Auenc opened 2 years ago

Auenc commented 2 years ago

I created a postman script that tested the endpoints of the api-express-database exercise.

https://gist.github.com/Auenc/8c4b5d117cf473a0619ddfeaeb49901b

In order to get the script setup:

The process to use this was as follows:

I think it would be nice to have test suites like these for each of the exercises that have endpoints we can test, this will save a lot of time "guessing" if the endpoints work based off of the handler code.

Auenc commented 2 years ago

A small note with that particular test suite. When I originally wrote it, the optional filters for GET /books and GET /pets were core criteria, however, now they are extension criteria.