[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. Change-Id: I838a85204dbe6acfe4bd30f8286794c55a0beba3 |
| Comment by Divjot Arora (Inactive) [ 26/Aug/19 ] |
|
CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/466302 |