Skip to content

Add testify, and update tests to use it rather than expect #1695

Closed

Description

@skelouse

Checklist

  • Are you running the latest v3 release? The list of releases is here.
  • Did you check the manual for your release? The v3 manual is here.
  • Did you perform a search about this feature? Here's the GitHub guide about searching.

What problem does this solve?

Simplifies tests, i.e

if err != nil {
	t.Error(err)
	return
}

Becomes

assert.NilError(t, err)

Solution description

import stretchr/testify in tests and replace value checking in tests with testify

Activity

  1. added
    status/triage
    area/v3
    on Mar 6, 2023
  2. skelouse commented on Mar 18, 2023

    @skelouse
    ContributorAuthor

    @dearchap was there a reason for the close? I opened this based on a comment on the mentioned PR.

  3. dearchap commented on Mar 18, 2023

    @dearchap
    Contributor

    Ah ok. Sorry I thought that PR was the fix for this.

  4. added this to the Release 3.x milestone on Jun 21, 2023
  5. self-assigned this
    on Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/v3status/triage

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions