[CXX-1078] Divide mongocxx tests into unit, mocked unit and integration tests Created: 11/Oct/16  Updated: 18/Jan/23  Resolved: 18/Jan/23

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

Type: Task Priority: Major - P3
Reporter: David Golden Assignee: Unassigned
Resolution: Won't Do Votes: 1
Labels: bgtrack
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-1321 Separate unit tests out into separate... Closed

 Description   

Currently, all driver tests except the instance test wind up in a single "driver" test binary. Also, tests sources are jumbled together in a single directory. It may also be that there are a mix of mocked and non-mocked tests in a single file. This makes it hard to know what failed when the test fails and hard to know where to find integration and unit tests in the source.

I think it would be a lot clearer to divide test binaries as follows:

  • unit – unit tests that do not rely on mocking, e.g. options class tests
  • mock – unit tests that require mocking libmongoc functions
  • integration – tests that require a mongod

Similarly, test sources should be divided along similar lines, possibly into separate directories.



 Comments   
Comment by Rishabh Bisht [ 18/Jan/23 ]

After careful evaluation, we have decided to close this ticket. Please add a comment if the impact of this ticket increases.
Thanks.

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