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

As github.com/pmezard/go-difflib is no longer maintained (EOLed), kindly find an alternative.

If use go test on all of your packages at once and there are multiple test suites, the suites will end up running in parallel with other suites.

documentation
concurrency
pkg-suite
question
rejected/invalid

[Example](https://play.golang.org/p/4PB_uXG8-Zh) ```go package main import ( "github.com/stretchr/testify/require" "testing" ) func TestPointerToValue(t *testing.T) { var a int = 1 var b int = 2 require.EqualValues(t, &a, &b, "The two numbers should...

enhancement
pkg-assert

Hello, I've been having issues mocking an interface that expects a `func` as a parameter. Not sure if this is a bug or maybe an opportunity to improve a little...

Currently, the error indicates only the file name, not the full path. Example: ``` event_test.go:46: Error Trace: event_test.go:46 Error: Received unexpected error: ``` It bothers me because I have the...

Edit: It looks like there are [two](https://github.com/stretchr/testify/pull/1021) [PRs](https://github.com/stretchr/testify/pull/1026) already open to fix this issue. For the sake of brevity, I will reduce this example to `Equal` and `Less`, but `Equal`...

## Summary This PR fixes custom messages in comparison-assertions. ## Changes The assesrtions now pass varargs rather than a single slice arg. ## Motivation The comparison-assertions were passing msgAndArgs as...

## Summary Error messages for `Positive` and `Negative` asserts are malformed, because of an extra argument (0) passed to the formatting function. This PR fixes that. ## Changes I moved...

The two methods are currently located in the `assert` package making them easily mistaken as "assert" methods when in fact they only return a boolean which indicates if the objects...

Hello, I'm having troubles comparing objects indirectly referencing function pointers. For the reference, here's a minimal example: ```go package main import ( "testing" assert "github.com/stretchr/testify/assert" ) type s struct {...