[CXX-1534] Test fixture Created: 23/Mar/18  Updated: 08/Feb/23

Status: Backlog
Project: C++ Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-1201 Add Evergreen tasks for a variety of ... Backlog
Epic Link: CXX Driver Testing (Evergreen)

 Description   

At the moment we test only against the latest server, deployed as a standalone. As we expand the MongoDB configurations we test against, the C++ Driver will have to check how MongoDB is configured and decide which tests to skip and what expectations to assert within tests, the same as other drivers.

Let's follow PyMongo's lead: once when the tests start, call "isMaster" and fill out a struct of information about the deployment, such as its min and max wire versions, whether it is a replica set, the number of nodes, whether test commands are enabled, etc.

"Catch" allows test fixtures with a relevant example:

https://github.com/catchorg/Catch2/blob/master/docs/test-fixtures.md#top


Generated at Wed Feb 07 22:02:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.