'Are there any alternatives to flapdoodle for embedded mongodb?
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?
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | TomekK |
