Sourced from github.com/stretchr/testify's releases.
v1.11.1
This release fixes #1785 introduced in v1.11.0 where expected argument values implementing the stringer interface (
String() string) with a method which mutates their value, when passed to mock.Mock.On (m.On("Method", <expected>).Return()) or actual argument values passed to mock.Mock.Called may no longer match one another where they previously did match. The behaviour prior to v1.11.0 where the stringer is always called is restored. Future testify releases may not call the stringer method at all in this case.What's Changed
- Backport #1786 to release/1.11: mock: revert to pre-v1.11.0 argument matching behavior for mutating stringers by
@brackendawsonin stretchr/testify#1788Full Changelog: https://github.com/stretchr/testify/compare/v1.11.0...v1.11.1
v1.11.0
What's Changed
Functional Changes
v1.11.0 Includes a number of performance improvements.
- Call stack perf change for CallerInfo by
@mikeauclairin stretchr/testify#1614- Lazily render mock diff output on successful match by
@mikeauclairin stretchr/testify#1615- assert: check early in Eventually, EventuallyWithT, and Never by
@cszczepaniakin stretchr/testify#1427- assert: add IsNotType by
@bartventerin stretchr/testify#1730- assert.JSONEq: shortcut if same strings by
@dolmenin stretchr/testify#1754- assert.YAMLEq: shortcut if same strings by
@dolmenin stretchr/testify#1755- assert: faster and simpler isEmpty using reflect.Value.IsZero by
@dolmenin stretchr/testify#1761- suite: faster methods filtering (internal refactor) by
@dolmenin stretchr/testify#1758Fixes
- assert.ErrorAs: log target type by
@craig65535in stretchr/testify#1345- Fix failure message formatting for Positive and Negative asserts in stretchr/testify#1062
- Improve ErrorIs message when error is nil but an error was expected by
@tsioftasin stretchr/testify#1681- fix Subset/NotSubset when calling with mixed input types by
@siliconbrainin stretchr/testify#1729- Improve ErrorAs failure message when error is nil by
@ccoVeillein stretchr/testify#1734- mock.AssertNumberOfCalls: improve error msg by
@3scalationin stretchr/testify#1743Documentation, Build & CI
- docs: Fix typo in README by
@alexandearin stretchr/testify#1688- Replace deprecated io/ioutil with io and os by
@alexandearin stretchr/testify#1684- Document consequences of calling t.FailNow() by
@greg0irein stretchr/testify#1710- chore: update docs for Unset #1621 by
@techfgin stretchr/testify#1709- README: apply gofmt to examples by
@alexandearin stretchr/testify#1687- refactor: use %q and %T to simplify fmt.Sprintf by
@alexandearin stretchr/testify#1674- Propose Christophe Colombier (ccoVeille) as approver by
@brackendawsonin stretchr/testify#1716- Update documentation for the Error function in assert or require package by
@architagrin stretchr/testify#1675- assert: remove deprecated build constraints by
@alexandearin stretchr/testify#1671- assert: apply gofumpt to internal test suite by
@ccoVeillein stretchr/testify#1739- CI: fix shebang in .ci.*.sh scripts by
@dolmenin stretchr/testify#1746- assert,require: enable parallel testing on (almost) all top tests by
@dolmenin stretchr/testify#1747- suite.Passed: add one more status test report by
@Ararsa-Deresein stretchr/testify#1706- Add Helper() method in internal mocks and assert.CollectT by
@dolmenin stretchr/testify#1423- assert.Same/NotSame: improve usage of Sprintf by
@ccoVeillein stretchr/testify#1742- mock: enable parallel testing on internal testsuite by
@dolmenin stretchr/testify#1756- suite: cleanup use of 'testing' internals at runtime by
@dolmenin stretchr/testify#1751- assert: check test failure message for Empty and NotEmpty by
@ccoVeillein stretchr/testify#1745
... (truncated)
2a57335
Merge pull request #1788
from brackendawson/1785-backport-1.11af8c912
Backport #1786
to release/1.11b7801fb
Merge pull request #1778
from stretchr/dependabot/github_actions/actions/chec...69831f3
build(deps): bump actions/checkout from 4 to 5a53be35
Improve captureTestingT helperaafb604
mock: improve formatting of error message7218e03
improve error msg929a212
Merge pull request #1758
from stretchr/dolmen/suite-faster-method-filteringbc7459e
suite: faster filtering of methods (-testify.m)7d37b5c
suite: refactor methodFilter