Vita icon indicating copy to clipboard operation
Vita copied to clipboard

Write Unit Test for end-points

Open Rishabh-malhotraa opened this issue 3 years ago • 6 comments

Write unit test to validate all our endpoints from the backend, (use a testing MongoDB database to do that), and then write a Github actions workflow to run all those tests before making any changes!

Rishabh-malhotraa avatar Dec 08 '21 05:12 Rishabh-malhotraa

@Rishabh-malhotraa can you assign this to me?

manav-06 avatar Jan 02 '22 18:01 manav-06

How do you plan to implement testing(I want to know your approach)? Plus, what library are you thinking of using?

Rishabh-malhotraa avatar Jan 02 '22 18:01 Rishabh-malhotraa

Hello, I tried setting up testing on backend using mocha for running tests, chai for assertions and supertest libraries.

Lalit3716 avatar Mar 05 '22 05:03 Lalit3716

So if no one is working on this maybe you can assign this to me ? and I will open a PR for the same for code review ?

Lalit3716 avatar Mar 05 '22 05:03 Lalit3716

Sure, remember with testing, adding test cases are more important than the test itself

Rishabh-malhotraa avatar Mar 05 '22 06:03 Rishabh-malhotraa

Great! I will start writing good test cases once you approve the pattern I followed for setting up testing.

Lalit3716 avatar Mar 05 '22 06:03 Lalit3716