testify icon indicating copy to clipboard operation
testify copied to clipboard

A toolkit with common assertions and mocks that plays nicely with the standard library

Results 469 testify issues
Sort by recently updated
recently updated
newest added

Are you planning to update project to use generics and also support go 1.18?

enhancement
input needed
Breaking Change
community
generics

I've been using testify for a long time now, I appreciate you building and maintaining this for us all :bow: I'm looking for functionality that is inspired by other testing...

enhancement
revisit
pkg-assert
assert.Eventually

It appears that https://github.com/pmezard/go-difflib is no longer maintained, but is still a dependency of this project. Are there any plans to remove it/fork and maintain a copy of it?

Most of this library is build around `testing.T` which has a wrapper implementing the `TestingT` interface. It doesn't seem like it would be too hard to add support for `testing.M`...

Support dynamic return arguments in a threadsafe way. (Versus setting c.ReturnValues which is shared state/not threadsafe.) Do this by modifying `Run` to accept three types of functions: ## 1: The...

enhancement
pkg-mock

Senario: Application implements some caching mechanism. I want to write test cases to test that if no cache exists, the mocked third-party service is called; if cached, the mocked service...

enhancement

I propose adding a generic equality assertion that can use a user-provided comparison function: ```go func Test1(t *testing.T) { a1 := makeA1() a2 := makeA2() EqualFunc(t, TestEqualityOfA, a1, a2) }...

enhancement
pkg-assert
generics

Hi All! I would like to be able to assert/require that a function panics with an error, and that the error message matches some regexp. Currently, I'm solving this in...

When running multiple tests in a suite which have been set to `suite.t().Parallel()`, tests will pass even if they should fail.

enhancement
concurrency
pkg-suite

```golang func TestFunc(t *testing.T) { assert := assert.New(t) } ``` Error message: [compiler InvalidIfaceAssign] [E] cannot use t (variable of type *testing.T) as assert.TestingT value in argument to assert.New: wrong...