[GODRIVER-1253] Create assertion library Created: 26/Aug/19  Updated: 28/Oct/23  Resolved: 29/Aug/19

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.0

Type: Task Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Robust Testing Framework

 Description   

Our integration tests currently depend on testify for assertions. This is a heavy dependency and we don't use most of it. Also, the require package we use for assertions has optional error messages and tries to generate one if it is not provided. This enforces an ordering on parameters to assertion functions, which we don't always follow, resulting in confusing error messages.

Create a simple assertion library that takes the few assertions we need from testify and make error messages required instead of optional.



 Comments   
Comment by Githook User [ 29/Aug/19 ]

Author:

{'name': 'Divjot Arora', 'username': 'divjotarora', 'email': 'divjot.arora@10gen.com'}

Message: Implement assertion library.

GODRIVER-1253

Change-Id: I838a85204dbe6acfe4bd30f8286794c55a0beba3
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/488a455046ffd1e8526252dda8fde2e22cdd4c3c

Comment by Divjot Arora (Inactive) [ 26/Aug/19 ]

CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/466302

Generated at Thu Feb 08 08:36:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.