|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this project will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [1.7.0] - 2025-10-20 |
| 9 | + |
| 10 | +### Added |
| 11 | +- **Recursive directory support**: You can now use patterns like `pkg/...` to generate tests for all Go files in a directory tree (fixes #186) |
| 12 | +- Documentation for the `-named` flag in README (PR #185) |
| 13 | +- CLAUDE.md for AI-assisted development context |
| 14 | +- `t.Parallel()` at the top-level test function when `-parallel` flag is used (fixes #188) |
| 15 | + |
| 16 | +### Changed |
| 17 | +- **BREAKING**: Minimum Go version increased from 1.6 to 1.22 |
| 18 | + - Leverages Go 1.22's per-iteration loop variable scoping |
| 19 | + - Removes unnecessary `tt := tt` and `name := name` shadowing in generated tests |
| 20 | + - Cleaner, more modern generated test code |
| 21 | +- **Template Error Handling**: Use `t.Fatalf()` instead of `t.Errorf() + return` in subtests with return values (PR #184) |
| 22 | + - Better test ergonomics and clearer failure semantics |
| 23 | + - Prevents misleading test output when errors occur |
| 24 | +- **Dependencies**: Replaced third-party bindata tools with stdlib `embed` package (PR #181) |
| 25 | + - Removed 834+ lines of generated code |
| 26 | + - Simplified build process (no more `go generate` needed) |
| 27 | + - Better maintainability and reduced dependencies |
| 28 | +- **Installation**: Updated README to use `go install` instead of deprecated `go get` (PR #180) |
| 29 | +- **CI/CD**: Updated GitHub Actions workflow |
| 30 | + - Now tests only Go 1.22.x and 1.23.x (down from 8 versions) |
| 31 | + - Updated actions/setup-go v2→v5 |
| 32 | + - Updated actions/checkout v2→v4 |
| 33 | + - Simplified coverage reporting with coverallsapp/github-action@v2 |
| 34 | + |
| 35 | +### Fixed |
| 36 | +- **Import Path Bug**: Fixed missing import paths when receiver types and methods are defined in different files (PR #179) |
| 37 | + - Now correctly collects imports from all files in the package |
| 38 | + - Prevents compilation errors in generated test files |
| 39 | +- **t.Parallel() Placement**: Moved `t.Parallel()` to the correct location at the top of test functions |
| 40 | + - Satisfies `tparallel` linter requirements |
| 41 | + - Ensures proper parallel test execution |
| 42 | + |
| 43 | +### Removed |
| 44 | +- Support for Go versions older than 1.22 |
| 45 | +- Bindata dependency (go-bindata, esc) in favor of stdlib embed |
| 46 | +- Unnecessary loop variable shadowing in generated tests |
| 47 | + |
| 48 | +## [1.6.0] - 2020-XX-XX |
| 49 | + |
| 50 | +Previous release (pre-changelog). |
| 51 | + |
| 52 | +[1.7.0]: https://github.com/cweill/gotests/compare/v1.6.0...v1.7.0 |
| 53 | +[1.6.0]: https://github.com/cweill/gotests/releases/tag/v1.6.0 |
0 commit comments