zonkyio / embedded-database-spring-test

A library for creating isolated embedded databases for Spring-powered integration tests.
Apache License 2.0
400 stars 37 forks source link

Embedded Postgres Database without Docker? #156

Closed Mom0aut closed 3 years ago

Mom0aut commented 3 years ago

Hello,

just as the title says can i run an embedded Postgres Database without a Docker Environment?

best regards Mom0

Mom0aut commented 3 years ago

i downgraded to some older version this fixed my issue

tomix26 commented 3 years ago

Hi, since version 2.0.0, the docker is a default provider. But it's possible to change that by setting zonky.test.database.provider=zonky property and adding io.zonky.test:embedded-postgres dependency.

More info here: https://github.com/zonkyio/embedded-database-spring-test/tree/2.0.x#using-zonky-provider-previous-default

provisota commented 1 year ago

But it's possible to change that by setting zonky.test.database.provider=zonky property

Or just by configuring the provider inside the test annotation @AutoConfigureEmbeddedDatabase(provider = ZONKY) as mentioned here. Thanks, @tomix26!