What's Changed
Functional Changes
- Add PanicAssertionFunc by @fahimbagar in #1337
- assert: deprecate CompareType by @dolmen in #1566
- assert: make YAML dependency pluggable via build tags by @dolmen in #1579
- assert: new assertion NotElementsMatch by @hendrywiranto in #1600
- mock: in order mock calls by @ReyOrtiz in #1637
- Add assertion for NotErrorAs by @palsivertsen in #1129
- Record Return Arguments of a Call by @jayd3e in #1636
- assert.EqualExportedValues: accepts everything by @redachl in #1586
Fixes
- assert: make tHelper a type alias by @dolmen in #1562
- Do not get argument again unnecessarily in Arguments.Error() by @TomWright in #820
- Fix time.Time compare by @myxo in #1582
- assert.Regexp: handle []byte array properly by @kevinburkesegment in #1587
- assert: collect.FailNow() should not panic by @marshall-lee in #1481
- mock: simplify implementation of FunctionalOptions by @dolmen in #1571
- mock: caller information for unexpected method call by @spirin in #1644
- suite: fix test failures by @stevenh in #1421
- Fix issue #1662 (comparing infs should fail) by @ybrustin in #1663
- NotSame should fail if args are not pointers #1661 by @sikehish in #1664
- Increase timeouts in Test_Mock_Called_blocks to reduce flakiness in CI by @sikehish in #1667
- fix: compare functional option names for indirect calls by @arjun-1 in #1626
Documantation, Build & CI
- .gitignore: ignore "go test -c" binaries by @dolmen in #1565
- mock: improve doc by @dolmen in #1570
- mock: fix FunctionalOptions docs by @snirye in #1433
- README: link out to the excellent testifylint by @brackendawson in #1568
- assert: fix typo in comment by @JohnEndson in #1580
- Correct the EventuallyWithT and EventuallyWithTf example by @JonCrowther in #1588
- CI: bump softprops/action-gh-release from 1 to 2 by @dependabot in #1575
- mock: document more alternatives to deprecated AnythingOfTypeArgument by @dolmen in #1569
- assert: Correctly document EqualValues behavior by @brackendawson in #1593
- fix: grammar in godoc by @miparnisari in #1607
- .github/workflows: Run tests for Go 1.22 by @HaraldNordgren in #1629
- Document suite's lack of support for t.Parallel by @brackendawson in #1645
- assert: fix typos in comments by @alexandear in #1650
- mock: fix doc comment for NotBefore by @alexandear in #1651
- Generate better comments for require package by @Neokil in #1610
- README: replace Testify V2 notice with @dolmen's V2 manifesto by @hendrywiranto in #1518
New Contributors
- @fahimbagar made their first contribution in #1337
- @TomWright made their first contribution in #820
- @snirye made their first contribution in #1433
- @myxo made their first contribution in #1582
- @JohnEndson made their first contribution in #1580
- @JonCrowther made their first contribution in #1588
- @miparnisari made their first contribution in #1607
- @marshall-lee made their first contribution in #1481
- @spirin made their first contribution in #1644
- @ReyOrtiz made their first contribution in #1637
- @stevenh made their first contribution in #1421
- @jayd3e made their first contribution in #1636
- @Neokil made their first contribution in #1610
- @redachl made their first contribution in #1586
- @ybrustin made their first contribution in #1663
- @sikehish made their first contribution in #1664
- @arjun-1 made their first contribution in #1626
Full Changelog: v1.9.0...v1.10.0