Skip to content

Reduce Container Usage #106

Open
Open
@michaelstaib

Description

@michaelstaib

At the moment we are using one container per class instance since in most cases we inject a resource as a IClassFixture. This can really drag down test performance. In many cases, for the test, it would be enough to create a new database within the container.

So the question is should we have some kind of a runtime state and reuse a container instance through multiple resources. I think the main issue why we did not do that was that we could not determine when the last test has be run and we can get rid of the container. Essentially a test run wide init.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions