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

testify is very useful testing library. But, testify can't support test description. test description is test code explanation. I think if I read code that was written 1 month ago,...

Having more arguments in a mock expectation than the interface has does not fail if those expectations match the string `(Missing)`. This is only really confusing if the matcher is...

pkg-mock
mock.ArgumentMatcher

Hello, I was surprised to see `MatchedBy()`'s function argument called again by `AssertExpectations()`. Here is a fake test showing it. I was using `MatchedBy()` to capture a callback argument and...

pkg-mock
mock.ArgumentMatcher

## Summary Since go-difflib is unmaintained since quite some time, the required functions have been taken over into a separate testify package. ## Motivation Unmaintained packages might vanish or be...

## Summary [gotest -template=testify](https://github.com/cweill/gotests/tree/develop/templates/testify) has an `assert.ErrorAssertionFunc` as one of the parameters. Testify has `assert.NoError` and `assert.Error` which asserts the functions returns an error or not. Usually this is enough...

Firstly, I love this library so much! Hooray! Thanks for sharing!

The following snippet returns error: ```go require.JSONEq(t, `[ {"uid":"0x2","name@en":"pho\ton"}, {"uid":"0x1","name":"pho\ton"} ]`, `[ {"uid":"0x1","name":"pho\ton"}, {"uid":"0x2","name@en":"pho\ton"} ]` ) ``` Is there any work-around for this? This seems like a bug to me.

I'm running into an issue with time comparisons failing when the tests are run in github actions, due to internal timezone differences in the time structs. I understand why they're...

Here you can see test failing https://play.golang.org/p/R3m0s_PxwGG If we call `SetupTest()` manually inside the subtest works correctly: https://play.golang.org/p/XpsmRqH2F4t Is this intended behaviour?

Hello, I am wondering if testify has test session level capabilities, similar to frameworks like python or nunit ? If not, has anyone come up with an efficient way of...