[SERVER-80144] Add custom messages to unit test assertions. Created: 16/Aug/23  Updated: 17/Aug/23  Resolved: 16/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Alexander Ignatyev Assignee: Backlog - Service Architecture
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Service Arch
Participants:

 Description   

So it would be possible to make test error messages more informative, something like

ASSERT_TRUE(matchExpr1->equivalent(*matchExpr2)) << "MatcxhExpression 1: " << matchExpr1->debugString() << ", MatchExpression 2: " << matchExpr2->debugString();



 Comments   
Comment by Alexander Ignatyev [ 16/Aug/23 ]

Answered in the comment.

Comment by Alexander Ignatyev [ 16/Aug/23 ]

Exactly this functionality, thank you!

Comment by Gregory Noma [ 16/Aug/23 ]

Is this suggesting something different/new compared to the current functionality? (Example)

Generated at Thu Feb 08 06:42:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.