MTE creates engines more than once for some tests #5038
Labels
Category: Test/QA
Requests, Issues and Changes targeting tests and quality assurance
Size: M
Medium-sized effort likely requiring some research and work in multiple areas
Topic: Stabilization
Requests, Issues and Changes related to improving stablity and reducing flakyness
Type: Bug
Issues reporting and PRs fixing problems
On an MTE test that has a
@BeforeAll
method or that uses field injection with@In
, MTE can end up creating more than one set of engines. Something to do with how thepostProcessTestInstance
method doesn't get atestInstance
in its context, but then later when something else does parameter injection on a@BeforeEach
or@Test
method, it does know the instance, and the way I wrote it stored those under different keys and now there are too many things.Reproduction test case in #5039.
While addressing this, we might also revisit Terasology/ModuleTestingEnvironment#75
Drop our own
@IsolatedMTEExtension
stuff and have test authors useLifecycle.PER_CLASS
if they want engines shared between test methods?The text was updated successfully, but these errors were encountered: