Skip to content

[Enhancement] Use MongoDB Mock for Testing

Summary

At the moment, the testing code requires a live mongo database. This complicates automated testing and CI/CD quite a lot. Instead, we could switch to database mocks. See for example here:

However, we probably can use testify/mock.

Why is the current feature not sufficient?

  • Not really compatible with CI
  • More work setting up local dev setup