NikhilM98 / sugarizer-school-portal-server

Sugarizer School Portal Server manages Kubernetes cluster to provide on-demand Sugarizer Server instances.
https://sugarizer.org
Apache License 2.0
3 stars 6 forks source link

Add unit tests for APIs #4

Open NikhilM98 opened 4 years ago

NikhilM98 commented 4 years ago

Add unit tests for the School Portal API.

Requirements:

ricknjacky commented 3 years ago

There are already test files users.js and deployments.js for unit testing APIs, are there some tests that remain? or am I missing something here? Please do update me, if I am. I'd like to work on this if the issue is still open.

NikhilM98 commented 3 years ago

Yes. You can use those tests for reference to add more tests. The tests are there but the coverage of the tests is not high enough.

ricknjacky commented 3 years ago

Yes. You can use those tests for reference to add more tests. The tests are there but the coverage of the tests is not high enough.

Thanks for the clarification.

PS:- I ran npm run test command after cloning the repository, and this the output I get:-

Screenshot (653)

Npm error log.txt

Any heads up on how to obviate this error?

NikhilM98 commented 3 years ago

@ricknjacky you're getting this error because you have not set-up SSP Server Properly. You need to set-up Sugarizer Chart Environment as described here.