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?
Asked
Active
Viewed 1,162 times
1 Answers
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
-
Although they are a good alternative they don't well in build pipelines. – jens_laufer Nov 18 '22 at 15:28