Closed obmarg closed 8 years ago
Thinking about this some more: I might not need to precisely determine test start time. It'd probably be OK to only create session scoped fixtures when we first encounter a test that depends on them. We'd probably need a small amount of co-ordination/locking to ensure that 2 async test modules couldn't both create session fixtures at the same time, but that should be relatively trivial.
Presumably we'd need a way to tear down session scoped fixtures. Not so sure how we'd do this, but can look into it.
Now that there is a global fixture module registry, it should be possible to implement session scoped fixtures. We can store details about these in the registry and try to create them as close to the test start time as we can. A few points: