Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of Vitests for Unit Testing #54

Merged
merged 5 commits into from
Jun 7, 2024
Merged

Conversation

Lunga-Ntando-Ndlovu
Copy link
Contributor

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:

  • Bug Fix
  • New Feature
  • Enhancement
  • Refactoring
  • Documentation Update

Checklist:

  • My code follows the coding standards of this project.
  • I have performed a self-review of my code.
  • I have added/updated relevant documentation.
  • My changes generate no new warnings or errors.
  • I have tested my changes.

Additional Notes:

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

  • Use the command 'npm test' to run tests.
  • Initial Unit Test have been placed in the 'testing' folder.

Copy link

codecov bot commented Jun 6, 2024

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 ⚠️
...rver/workspace/src/auth/strategies/jwt.strategy.ts 0.00% 14 Missing ⚠️
src/server/workspace/src/auth/auth.module.ts 0.00% 12 Missing ⚠️
...er/workspace/src/auth/strategies/local.strategy.ts 0.00% 11 Missing ⚠️
src/server/workspace/src/auth/auth.service.ts 43.75% 9 Missing ⚠️
src/server/workspace/src/app.module.ts 0.00% 6 Missing ⚠️
.../workspace/src/organisation/organisation.module.ts 0.00% 6 Missing ⚠️
src/server/workspace/src/user/user.module.ts 0.00% 6 Missing ⚠️
src/server/workspace/src/user/user.service.ts 83.78% 6 Missing ⚠️
...server/workspace/src/workspace/workspace.module.ts 0.00% 6 Missing ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #54   +/-   ##
==========================================
  Coverage           ?   60.75%           
==========================================
  Files              ?       29           
  Lines              ?      316           
  Branches           ?       14           
==========================================
  Hits               ?      192           
  Misses             ?      124           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@bukhosi-eugene-mpande bukhosi-eugene-mpande left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dodgy but ok

Copy link
Contributor

@JoshuaTristanWereley JoshuaTristanWereley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@JoshuaTristanWereley JoshuaTristanWereley merged commit 67c6a53 into develop Jun 7, 2024
7 checks passed
@Lunga-Ntando-Ndlovu Lunga-Ntando-Ndlovu deleted the update/vitests branch June 27, 2024 13:22
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants