testify
testify copied to clipboard
A toolkit with common assertions and mocks that plays nicely with the standard library
Are you planning to update project to use generics and also support go 1.18?
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...
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...
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...
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) }...
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.
```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...