Tags: cweill/gotests
Tags
Fix -template_params flag not being passed (Issue #149) Resolves #149 The -template_params flag was defined in main.go but never passed to the process.Options struct, making it non-functional. This was a bug introduced in PR #90. Changes: - Added TemplateParams field to process.Options struct - Updated main.go to pass *templateParams to process.Run() - Updated process.go to parse JSON from TemplateParams string - File-based params (-template_params_file) take precedence over string-based params (-template_params) if both are provided - Added proper error handling for invalid JSON The flag now works as intended: $ gotests -template_params '{"key":"value"}' -all file.go Thanks to @butuzov for identifying this issue and @cweill for the fix suggestion! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Update golang.org/x/tools to v0.38.0 to fix CVEs Resolves #183 Updated golang.org/x/tools from v0.0.0-20191109212701 (Nov 2019) to v0.38.0 (latest) to address multiple security vulnerabilities including: - CVE-2021-38561 - CVE-2019-9512 - CVE-2020-29652 Changes: - Updated golang.org/x/tools to v0.38.0 - Updated go directive to 1.24.0 (with toolchain go1.24.5) - Added indirect dependencies: golang.org/x/mod v0.29.0, golang.org/x/sync v0.17.0 - Fixed test code to use proper format string in t.Logf() call (required by stricter checking in newer x/tools) All tests pass with the updated dependencies. Thanks to @testwill for identifying these security issues! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
docs: Update VS Code link to gotests-specific configuration Resolves #167 Changed the Visual Studio Code link from the general vscode-go repository to the specific gotests configuration documentation. This provides users with direct access to the relevant settings for configuring gotests in VS Code, consistent with how other IDE plugins are documented. Thanks to @davidhsingyuchen for the contribution! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Add -version flag to display version information Resolves #133 Users can now check the version of gotests they're running with: $ gotests -version The output includes: - Module version (from build info) - Go version used to build - Git commit hash (when available) - Build timestamp (when available) This helps users identify which version they're using, especially when troubleshooting issues or verifying they have the latest release. Implementation: - Added -version flag to gotests/main.go - Uses runtime/debug.ReadBuildInfo() to extract version metadata - Updated README.md with flag documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Release v1.7.0 Major improvements and modernization release: ✨ Features: - Recursive directory support (pkg/...) for bulk test generation - Cleaner generated tests with Go 1.22+ loop scoping - Better error handling with t.Fatalf() in subtests 🔧 Improvements: - Minimum Go version: 1.22 (was 1.6) - Replaced bindata with stdlib embed (-834 lines!) - Fixed import path bugs for split-file definitions - Proper t.Parallel() placement for linters 📦 CI/CD: - Updated to test Go 1.22.x and 1.23.x only - Modernized GitHub Actions workflow See CHANGELOG.md for full details.
PreviousNext