hibernate-reactive icon indicating copy to clipboard operation
hibernate-reactive copied to clipboard

Create a common schema for testing

Open DavideD opened this issue 4 years ago • 3 comments

The update of a schema is a pretty heavy operation, in particular for databases like CockroachDB. For testing we re-create a schema almost every time we launch a test.

An idea to explore is to have a set of entities that cover most of testing scenarios and try to reuse this schema everytime we add a new test. This way we could create a new schema at the beginning of the test phase and reuse it for all the tests.

It something that needs to be explored and it's probably related, or might make it obsolete, to https://github.com/hibernate/hibernate-reactive/issues/487

DavideD avatar Mar 04 '21 17:03 DavideD

@DavideD

Chatted with @sebersole a bit today.

Looks like ORM has added session factory management and common schema in the wip/6.0 branch using junit annotations including @DomainModel for entity management and @SessionFactory.

Not sure if there is a common schema though.

blafond avatar Apr 05 '21 21:04 blafond

There is a series of common schemas. A single one is just not feasible.

sebersole avatar Apr 06 '21 12:04 sebersole

Thanks @sebersole.

It would be nice if we could reuse something or adapt it for reactive

DavideD avatar Apr 06 '21 13:04 DavideD