testify
testify copied to clipboard
A toolkit with common assertions and mocks that plays nicely with the standard library
Often I have to test that a function is called and I use boolean flags. One flag is alright, but when I need more things get ugly. My suggestion is...
## Summary `Unset()` doesn't work as expected in documentation. Instead of unsetting call specification it causes panic. Reason: During call specification filtering `Unset()` changes len of a `ExpectedCalls` slice while...
## Summary Test testify against actual golang version. ## Changes ```yaml matrix: go_version: ["1.19", ...] ``` ## Motivation To ensure testify is ready for actuality and future. ## Related issues
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3.2.0 to 3.3.0. Release notes Sourced from actions/setup-go's releases. Support architecture input and fix Expand-Archive issue This release introduces support for architecture input for setup-go action #253....
## Summary AssertCalled(...) displays output from other methods when the assertion fails. ## Changes Added a check that the called method name matches that of the asserted method name. Same...
## Summary Allow suite methods to take `*testing.T` parameter (as normal tests do). This is BC, and we are already messing with reflection there, so no penalties either. ## Changes...
## Summary Allow optional calls with fixed repetitions: `m.Maybe().Once() == at most once` ## Changes Besides little refactoring for readability, the change is simple: only return errors for `m.Repeatibility >...
currently the message isn't too helpful, it shows the values that are wrong but does not say which key that value belongs to. Currently test code ```go assert.InDeltaMapValues(t, map[string]int{"a": 3,...
I have several tests using `testify/suite` and I execute them in parallel as follows ``` type IntegrationSuite struct { suite.Suite } func TestIntegrationSuite(t *testing.T) { suite.Run(t, &IntegrationSuite{}) } func (is...
gorc last update is nine years old I think it makes no sense to link to it.