-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
None
-
Query Execution
We should have a unit test for every query execution stage. Doing so is non-trivial as it may require mocking / untangling of dependencies.
For instance, it would be nice to be able to unit test UpdateStage without a real collection or performing real writes. A mock collection could accept writes or be configured to issue WriteConflictException at predictable points in the test. Similarly, we could create mock implementations of IndexCursor and RecordCursor in order to unit test stages which perform data access.
- is duplicated by
-
SERVER-15495 Add dbtests for new query stages
- Closed