[SERVER-58069] ASSERT_THAT matcher framework for unit tests Created: 24/Jun/21  Updated: 29/Oct/23  Resolved: 12/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0, 5.0.7

Type: Improvement Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: carry-over
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Service Arch 2021-07-12, Service Arch 2021-08-09, Service Arch 2021-08-23
Participants:
Story Points: 3

 Description   

Add an extensible system of object matchers by adding an ASSERT_THAT(value, matcher) macro to the C++ mongo/unittest framework.
See PM-2118

PoC:
https://github.com/BillyDonahue/mongo/tree/assert_that



 Comments   
Comment by Githook User [ 17/Mar/22 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-58069 ASSERT_THAT: a matcher-based assert for unit tests

(cherry picked from commit da9ccccbda9538db40394f37d6f7446f33b39c0a)
Branch: LB
https://github.com/mongodb/mongo/commit/e786e51ddc656031deba37f0d3a9ce99607361f2

Comment by Githook User [ 08/Mar/22 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-58069 ASSERT_THAT: a matcher-based assert for unit tests

(cherry picked from commit da9ccccbda9538db40394f37d6f7446f33b39c0a)
Branch: v5.0
https://github.com/mongodb/mongo/commit/26d68fee401a76d27d18270becefe1f7cd8bae5c

Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 12/Aug/21 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-58069 ASSERT_THAT: a matcher-based assert for unit tests
Branch: master
https://github.com/mongodb/mongo/commit/da9ccccbda9538db40394f37d6f7446f33b39c0a

Comment by Billy Donahue [ 21/Jul/21 ]

Code Review: https://mongodbcr.appspot.com/816310003/
Nevermind the other one. My mistake.

Generated at Thu Feb 08 05:43:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.