3

I have tried using flapdoodle's embedded mongodb for integration testing in my SpringBoot application and it runs well locally. However, it fails to run in a docker container when deployed. Are there any alternatives to flapdoodle for embedded mongodb?

fxxixx
  • 116
  • 1
  • 10

1 Answers1

0

There's a Testcontainers library that you can use (https://www.testcontainers.org/modules/databases/mongodb/). It lets you use docker images for your tests, so you can test using actual mongo database.

TomekK
  • 403
  • 1
  • 4
  • 11