You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository is using gopkg.in/check.v1 as a testing framework. While gopkg.in/check.v1 was a good solution at the time it was introduced, it's not very actively maintained, and doesn't take advantage of recent improvements in Go's testing package.
We should replace this framework with a more actively maintained, and commonly used framework (also to reduce extra module dependencies on consumers of this repository / module).
We've had good results with testify for new tests and have looked into removing check.
The biggest issue with removing check is that the driver test suites use check heavily and cover a lot of important functionality. Not impossible by any means, but it is a fair amount of effort since there's not a 1-to-1 way to swap out check for testify, at least.
I was looking at converting check.v1 to testify/suite today since I've used testify/suite in the past and have generally liked it. Alot of the functionality used by check has a relatively simple 1:1 with testify/suite making this refactor a little more straightforward. I'd be interested in tackling this.
Activity
deleteriousEffect commentedon May 1, 2023
We've had good results with testify for new tests and have looked into removing check.
The biggest issue with removing check is that the driver test suites use check heavily and cover a lot of important functionality. Not impossible by any means, but it is a fair amount of effort since there's not a 1-to-1 way to swap out check for testify, at least.
milosgajdos commentedon May 1, 2023
There is https://pkg.go.dev/github.com/stretchr/testify/suite
We just never really put any effort into removing check1. It is non-trivial I agree!
squizzi commentedon May 4, 2023
I was looking at converting
check.v1totestify/suitetoday since I've usedtestify/suitein the past and have generally liked it. Alot of the functionality used by check has a relatively simple 1:1 withtestify/suitemaking this refactor a little more straightforward. I'd be interested in tackling this.davidspek commentedon Aug 16, 2023
@squizzi Is this still something you think you’ll get around to and/or want to do?
squizzi commentedon Aug 17, 2023
@davidspek I've got something about 70% done, I'm on vacation right now and plan to finish it when I return next week.
davidspek commentedon Aug 17, 2023
Awesome!
milosgajdos commentedon Dec 3, 2023
@squizzi have you made any progress with this? It'd be fantastic to bin
gopkg.in/check.v1