Skip to content

testing: replace legacy gopkg.in/check.v1 #3884

Closed

Description

@thaJeztah

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).

Some alternatives that are commonly used:

Related / similar;

Activity

  1. deleteriousEffect commented on May 1, 2023

    @deleteriousEffect
    Member

    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.

  2. milosgajdos commented on May 1, 2023

    @milosgajdos
    Member

    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!

  3. squizzi commented on May 4, 2023

    @squizzi
    Collaborator

    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.

  4. davidspek commented on Aug 16, 2023

    @davidspek
    Collaborator

    @squizzi Is this still something you think you’ll get around to and/or want to do?

  5. squizzi commented on Aug 17, 2023

    @squizzi
    Collaborator

    @davidspek I've got something about 70% done, I'm on vacation right now and plan to finish it when I return next week.

  6. davidspek commented on Aug 17, 2023

    @davidspek
    Collaborator

    Awesome!

  7. milosgajdos commented on Dec 3, 2023

    @milosgajdos
    Member

    @squizzi have you made any progress with this? It'd be fantastic to bin gopkg.in/check.v1

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions