Out of memory: Java heap space and very slow test execution

Description

We have a project with 300 test methods and on weaker machines, our build fails because of "Out of memory: Java heap space"

What we have noticed that each test method is creating a new context object.
Besides out of memory exception test execution is very slow (For each test class we are registering a minimum of necessary services and appropriate resource resolver type).

Example:

Status

Assignee

Unassigned

Reporter

Matija Kovacek

Labels

None

Components

Affects versions

Priority

Critical
Configure