fix(deps): update module github.com/cweill/gotests to v1.7.4 #188
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.6.0->v1.7.4Release Notes
cweill/gotests (github.com/cweill/gotests)
v1.7.4Compare Source
What's New in v1.7.4
This release fixes two important bugs that improve test correctness and restore broken functionality.
Bug Fixes
🐛 Fixed wantErr Test Logic (PR #169)
When a test expects an error (
tt.wantErr == true), gotests now correctly skips result validation instead of checking potentially undefined return values.Before:
After:
This prevents false test failures and ensures tests behave correctly when expecting errors.
Thanks to @arifmahmudrana for identifying this issue!
🐛 Fixed -template_params Flag (Issue #149)
The
-template_paramsflag was defined but never actually used due to a bug from PR #90. This flag now works correctly!Usage:
This is useful when calling gotests from other tools with custom templates.
Thanks to @butuzov for identifying this bug and @cweill for the fix suggestion!
Installation
Full Changelog: cweill/gotests@v1.7.3...v1.7.4
v1.7.3Compare Source
What's New in v1.7.3
This is a security update that addresses multiple CVEs by updating dependencies.
Security Fixes
🔒 Updated golang.org/x/tools to fix CVEs
Updated
golang.org/x/toolsfrom v0.0.0-20191109212701 (November 2019) to v0.38.0 (latest) to address multiple security vulnerabilities:Changes
golang.org/x/toolsfrom 2019 version to v0.38.0golang.org/x/modv0.29.0,golang.org/x/syncv0.17.0All tests pass with the updated dependencies.
Installation
Important Note
We recommend all users update to this version to ensure you have the latest security fixes.
Full Changelog: cweill/gotests@v1.7.2...v1.7.3
Thanks to @testwill for identifying these security vulnerabilities!
v1.7.2Compare Source
What's New in v1.7.2
This is a small cleanup release with code quality improvements and documentation updates.
Improvements
🧹 Code Cleanup
generateTest()by removing redundant type conversion. Thanks to @fengxuway!📚 Documentation
Installation
Full Changelog: cweill/gotests@v1.7.1...v1.7.2
v1.7.1Compare Source
What's New in v1.7.1
This release adds two highly-requested features to improve the gotests experience.
New Features
🧪 go-cmp Support (
-use_go_cmp)Generate tests using google/go-cmp instead of
reflect.DeepEqualfor better test assertions and diff output.Generated tests will use
cmp.Equal()for comparisons andcmp.Diff()in error messages, providing much clearer output when tests fail.Example output:
Resolves #155 (thanks to @butuzov for the original PR!)
📋 Version Information (
-version)Check which version of gotests you're running:
This helps with troubleshooting and verifying you have the latest release.
Resolves #133
Housekeeping
Installation
Full Changelog: cweill/gotests@v1.7.0...v1.7.1
v1.7.0: - Major Modernization ReleaseCompare Source
v1.7.0 - Major Modernization Release
After 5 years since v1.6.0, we're excited to release v1.7.0 with major improvements and modernizations! 🎉
✨ New Features
Recursive Directory Support
You can now generate tests for entire directory trees using the
...pattern:This will recursively generate tests for all Go files in the
pkgdirectory and its subdirectories. Fixes #186.Cleaner Generated Code
Generated tests now use Go 1.22+ loop variable scoping, eliminating the need for the
tt := ttshadowing pattern. Tests are now cleaner and more readable.Better Error Handling
Subtests with return values now use
t.Fatalf()instead oft.Errorf() + return, providing clearer test failure semantics and preventing misleading output. Thanks to PR #184.🔧 Improvements
BREAKING: Minimum Go Version
Dependency Reduction
embedpackage (PR #181)go generateneededBug Fixes
Template Improvements
t.Parallel()placement at top-level test functions (fixes #188)tparallellinter requirementsDocumentation & Installation
go installinstead of deprecatedgo get(PR #180)-namedflag for map-based table tests (PR #185)📦 CI/CD Updates
📊 Statistics
🙏 Thanks
Special thanks to the contributors whose PRs were integrated in this release:
And to everyone who reported issues and helped maintain this project!
📝 Installation
🔗 Full Changelog
See CHANGELOG.md for complete details.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.