Skip to content

Create one SessionFactory per class in tests #487

Closed
@DavideD

Description

@DavideD

Not critical or urgent.

At the moment we open/close a session factory after each single test and therefore running the schema generation queries each time.

We could save some time creating the factory only once.
This requires:

  • Add appropriate populateDb/cleanUpDb methods before and after each tests (if they are missing)
  • Create the factory statically in the base class

Our build is already quite fast with some db but it might help with the slower ones.

Metadata

Metadata

Assignees

Labels

testingImprovements to test suite

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions