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: initial service unit-tests #14

Merged
merged 1 commit into from
Jan 27, 2024
Merged

test: initial service unit-tests #14

merged 1 commit into from
Jan 27, 2024

Conversation

sanathkumarbs
Copy link
Owner

This PR introduces a basic unit test for the Service / Business logic of the application.

Initially, I considered introducing unit tests for the API Handler, but it would just add a significant set of cruft that needs to be maintained as it would need mocked service and hand-coding various scenarios for how the service would handle it. There will also be repetition between service-level tests and the API handler.

Instead, will be introducing integration or end-to-end tests that would cover the API Handling cases, which would achieve the same goals much easily.

@sanathkumarbs sanathkumarbs self-assigned this Jan 27, 2024
@sanathkumarbs sanathkumarbs merged commit b445e28 into main Jan 27, 2024
7 checks passed
@sanathkumarbs sanathkumarbs deleted the test-framework-1 branch January 27, 2024 06:12
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.

1 participant