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

tests: implement unit tests for controllers and services #29

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

Q-Niranjan
Copy link
Contributor

This PR improves test coverage for the OpenG2P Portal API, with a focus on controllers, services, and exception handling. The tests ensure key functionalities like authentication, file handling, program management, and error scenarios are robustly covered.

Controllers: Auth, Discovery, File, Form, OAuth, and Program controllers tested.
Services: Document File, Form, Membership, Partner, and Program services tested.
Exception Handling: Validates error scenarios and authorization flows.

Impact: Ensures reliable API behavior, prevents regressions, and improves maintainability.

@codecov-commenter
Copy link

codecov-commenter commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.02%. Comparing base (2ab1362) to head (55f4b3a).
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop      #29       +/-   ##
============================================
+ Coverage    55.21%   87.02%   +31.80%     
============================================
  Files           38       49       +11     
  Lines         1304     2273      +969     
  Branches        92       93        +1     
============================================
+ Hits           720     1978     +1258     
+ Misses         584      253      -331     
- Partials         0       42       +42     

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

@shibu-narayanan shibu-narayanan merged commit 6f3200a into OpenG2P:develop Dec 9, 2024
2 checks passed
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.

3 participants