-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Testing
-
None
mtest.T has become bloated. The type could be abstracted into several, smaller types that handle their own setup and teardown. In particular, a resource type could be created to handle Client, Database and Collection setup. Furthermore, mtest.T.shareClient is an example of global mutable state that, while currently unused, should be removed.
Potential refactors should be at least discussed within the team before being implemented.