CGUC / skybunk-server

The back-end application for Conrad Grebel University College students to stay connected
3 stars 9 forks source link

Add unit testing for REST API #73

Open scholvat opened 5 years ago

ahiijny commented 4 years ago

I think probably this would be considered more "integration testing" rather than "unit testing". The terminology is a bit confusing though (there's also "functional testing", "end-to-end testing", "acceptance testing", etc.?...)

What should the folder structure for these tests be? Since they're testing at a different level than the present unit tests, I think it would be better if they were separated in some way.

Some ideas I found online:

Also somewhat relevant:

I'm assuming that adding unnecessary additional dependencies would be unwanted, so mocha + chai will be used for this as well? Then, some possibly helpful resources: