Skip to content

Replace go-check with stretchr/testify#147

Open
tomyl wants to merge 2 commits intogo-stomp:masterfrom
tomyl:drop_gocheck
Open

Replace go-check with stretchr/testify#147
tomyl wants to merge 2 commits intogo-stomp:masterfrom
tomyl:drop_gocheck

Conversation

@tomyl
Copy link

@tomyl tomyl commented Nov 10, 2025

This PR migrates the test suite from gopkg.in/check.v1 to github.com/stretchr/testify/require. go-check maybe made sense in the past but plain testing.T + an assertion library such as stretchr/testify is a popular choice in modern Go code bases today. It's nice if go test -v -run xxx does what you expect.

I manually migrated the tests and had Gemini 2.5 Pro review the diff.

I understand if nobody wants to review or merge this. Large diff and for some it's maybe simply not worth doing this. Also the choice of stretch/testify may not be obvious. Feel free to just close this PR without any comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant