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

test: Improve code coverage #208

Merged
merged 14 commits into from
Jun 26, 2024
Merged

test: Improve code coverage #208

merged 14 commits into from
Jun 26, 2024

Conversation

Jayllyz
Copy link
Contributor

@Jayllyz Jayllyz commented Jun 25, 2024

Summary 📝

Improve API code coverage.

Which part of the repository is impacted ?

  • API
  • Client
  • Admin
  • Documentation
  • CI/CD
  • Other

@Jayllyz Jayllyz self-assigned this Jun 25, 2024
Copy link

github-actions bot commented Jun 26, 2024

Coverage Report for API (./apps/api)

Status Category Percentage Covered / Total
🟢 Lines 82.49% (🎯 70%) 5586 / 6771
🟢 Statements 82.49% (🎯 70%) 5586 / 6771
🟢 Functions 60% (🎯 40%) 9 / 15
🟢 Branches 39.21% (🎯 30%) 160 / 408
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
apps/api/src/handlers/activities.ts 56.49% 17.07% 100% 56.49% 28, 30-33, 35-37, 39-42, 44, 46-48, 50-53, 55-56, 59, 61, 63-65, 67-68, 75-76, 84-85, 88-89, 92-99, 102-105, 108-111, 122-125, 130-131, 173-174, 177-178, 200-201, 207-224, 226-244, 246-248, 250-251, 266-267, 272-273, 314-315, 317-318, 320, 322-326, 328, 330-331, 382-383, 397-398, 416-417, 422-423, 429-430, 432-436, 438-444, 446, 448-450, 452-455, 457-458
apps/api/src/handlers/location.ts 78.4% 33.33% 100% 78.4% 19-20, 30-31, 42-43, 45-47, 49-50, 64-65, 84-85, 103-104, 109-110
apps/api/src/handlers/reasons.ts 90.47% 78.57% 100% 90.47% 18-19, 44-45, 82-83
apps/api/src/handlers/sports.ts 79.76% 33.33% 100% 79.76% 19-20, 23-25, 30-31, 46-47, 65-66, 86-87, 100-101, 106-107
apps/api/src/handlers/votes.ts 75.4% 48.64% 100% 75.4% 26-27, 37-38, 66-67, 82-83, 92-93, 106-107, 127-128, 142-143, 148-149, 164-165, 179-180, 187-188, 191-192, 195-199, 201-203, 205-207, 209-212, 220-221, 229-230
apps/api/src/libs/activities.ts 100% 100% 100% 100%
apps/api/src/middlewares/auth.ts 100% 77.77% 100% 100%
apps/api/src/routes/reasons.ts 100% 100% 100% 100%
Generated in workflow #353

@Athlonix Athlonix deleted a comment from github-actions bot Jun 26, 2024
@Jayllyz Jayllyz marked this pull request as ready for review June 26, 2024 20:59
@Jayllyz Jayllyz merged commit 7d9854b into main Jun 26, 2024
7 checks passed
@Jayllyz Jayllyz deleted the test/improve-code-codeverage branch June 26, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant