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]: Make a policy to implementing unit tests for MongoDB #273

Open
rot1024 opened this issue Apr 25, 2022 · 0 comments
Open

[BE]: Make a policy to implementing unit tests for MongoDB #273

rot1024 opened this issue Apr 25, 2022 · 0 comments
Assignees

Comments

@rot1024
Copy link
Member

rot1024 commented Apr 25, 2022

Make a policy to implementing unit tests for MongoDB (internal/infrastructure/mongo).

NOTE: There is no need to implement individual test cases.

This package includes codes that depends on MongoDB and MongoDB should be running if we want to run those tests.

Requirements:

  • Skip all mongo tests when REEARTH_DB env var is not set
  • Initialize a new database (UUID and so on can be included to a database name) before the unit test starts
  • Drop the database after the unit test ends
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

No branches or pull requests

2 participants