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

[BE] add unit tests to increase code coverage #249

Open
2 tasks
rot1024 opened this issue Mar 22, 2022 · 0 comments
Open
2 tasks

[BE] add unit tests to increase code coverage #249

rot1024 opened this issue Mar 22, 2022 · 0 comments
Assignees
Labels

Comments

@rot1024
Copy link
Member

rot1024 commented Mar 22, 2022

Target

  • internal/adapter/gql/gqlmodel
  • internal/infrastructure/mongo/mongodoc

Not target

  • internal/infrastructure/* (needs mocking or running DBs) -> [BE] add mongo tests #14
  • internal/adapter/* (low priority due to thin package)
  • internal/usecase/* (refactoring in progress and possible code changes)
  • pkg/* (not perfect, but generally well unit tested)

Policy

"Table-driven test" should be used only when test cases are diverse and It makes test codes more readable. It is not always necessary to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants