Pensano-dev / aura-mobile-app

5 stars 0 forks source link

🧪 test: BE - Write Postman API tests for Health routes #60

Open pablisch opened 4 months ago

pablisch commented 4 months ago

Add tests in Postman which will hopefully then be added to the CI pipeline.

pablisch commented 4 months ago

Please review these tests, including the assessing whether the tests are valid, useful and the test messages.

To run the tests, the backend API must be running in test mode, npm run start:test.

In postman, go to the aura workspace and these tests relate only to the health routes.

Image

When you run each request, rather than looking at the response, you can select Tests in the lower panel.

Image

All tests should pass for each request.

pablisch commented 4 months ago

If you click on the ... by the health routes folder, you can pick run folder.

Image

This allows you to run all the tests at once.

Image

And see all results.

Image

kikilondon commented 4 months ago

Hi @pablisch as I suspected, all the tests pass.