In the ScholarX backend, some unit tests are missing so we need to add those tests. Previously we had created unit tests for most of the endpoints and service methods. Since few months I noticed that the tests don’t run when building the backend. So I checked the backend and found that the unit tests are in the wrong directory.
But after moving it to the right directory, it throws errors because some controllers and methods have changed.
The swagger UI is also not working now, so we have to fix that too.
To add the missing unit tests, we have to do these things:
So we can also assign the new contributors for those
Btw, I tried fixing the directory issue. But before merging, we have to fix the existing tests from that PR. previously we had nearly 100 unit tests, and most of them are failing due to endpoint changes. I was able to fix 50 of them. For the rest, I need to find a way to create a mock authentication principal.