Open
Description
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.