Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 410
fxxixx Avatar asked Nov 16 '25 09:11

fxxixx


1 Answers

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.

like image 186
TomekK Avatar answered Nov 18 '25 11:11

TomekK



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!