COS301-SE-2024 / ClassConnect

ClassConnect is an innovative educational platform that blends the traditional learning hub with a 3D learning environment.
https://www.class-connect.online/
11 stars 1 forks source link

Addition of Vitests for Unit Testing #54

Closed Lunga-Ntando-Ndlovu closed 3 weeks ago

Lunga-Ntando-Ndlovu commented 4 weeks ago

Pull Request

Description:

Implementation of Vitests for Unit Testing has been integrated. Creation of Unit Tests still required.

Related Issues:

Refactoring of pseudo unit testing using cypress still needs to be changed/removed.

Type of Change:

Checklist:

Additional Notes:

Get vitests installed using the usual method for dependencies (i.e bun install or npm i [etc.])

codecov[bot] commented 4 weeks ago

Codecov Report

Attention: Patch coverage is 62.33766% with 116 lines in your changes missing coverage. Please review.

Please upload report for BASE (develop@8420486). Learn more about missing BASE report. Report is 91 commits behind head on develop.

Files Patch % Lines
src/server/workspace/src/utils/utility.ts 12.00% 22 Missing :warning:
...rver/workspace/src/auth/strategies/jwt.strategy.ts 0.00% 14 Missing :warning:
src/server/workspace/src/auth/auth.module.ts 0.00% 12 Missing :warning:
...er/workspace/src/auth/strategies/local.strategy.ts 0.00% 11 Missing :warning:
src/server/workspace/src/auth/auth.service.ts 43.75% 9 Missing :warning:
src/server/workspace/src/app.module.ts 0.00% 6 Missing :warning:
.../workspace/src/organisation/organisation.module.ts 0.00% 6 Missing :warning:
src/server/workspace/src/user/user.module.ts 0.00% 6 Missing :warning:
src/server/workspace/src/user/user.service.ts 83.78% 6 Missing :warning:
...server/workspace/src/workspace/workspace.module.ts 0.00% 6 Missing :warning:
... and 7 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #54 +/- ## ========================================== Coverage ? 60.75% ========================================== Files ? 29 Lines ? 316 Branches ? 14 ========================================== Hits ? 192 Misses ? 124 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.