techservicesillinois / secdev-quarantinenetwork

Source code for the Quarantine Network API and self-service portal
Other
2 stars 0 forks source link

Add postman tests running inside the Makefile using newman #16

Open zdc217 opened 4 years ago

zdc217 commented 4 years ago

Newman can be installed via NPM so this will need to be worked into the container as well.

There is also a newman github action that could be used: https://github.com/marketplace/actions/newman-action

zdc217 commented 4 years ago

I dug into the possibility of mocking the api with Postman so that we could run automated tests. Using Postman's mock service requires creating an account and getting an API key, which would lead to some overhead managing developer accounts/teams/etc...

I'm going to add a basic test we can run with Postman/Newman on our local machines for now and we can revisit automating this later if we end up not needing to mock the API.

ddriddle commented 4 years ago

@zdc IMO Postman & Newman tests should just be for integration tests. The majority of your tests should be unit tests written in Python.

edthedev commented 4 years ago

QNet work has been put on hold due to COVID response and back-to-school preparation.