ruichen199801 / forxnews

CIS550 database course project
https://youtu.be/nuDBwg3mG6o
0 stars 1 forks source link

[Improvement] Testing #75

Closed ruichen199801 closed 1 year ago

ruichen199801 commented 1 year ago

Backend unit tests are added in the /test branch (checkout to the branch and run npm test).

Given time limit, we only implemented basic unit tests for restaurant, review, reviewer GET routes. We may want to add more tests including auth and protected routes.

It may also be fun to look into other test frameworks such as Mocha and Chai.

Notes:

ruichen199801 commented 1 year ago

The test branch is NOT merged into main. For now we put all test cases on this branch only.

ruichen199801 commented 1 year ago

All backend routes are fully tested via Postman. Postman test collection can be found at the readme page.