All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased (diff)
- Updated minimum required version of indirect dependency
gopkg.in/yaml.v3
(#13).
- Updated
go.mod
togo 1.17
to enable more modern Go module features. See the Go Modules Reference for details (#12).
There have been no significant changes to testgroup
's behavior since
v0.3.0 almost three years ago. I think we're ready to tag version
1.0.0. 🎉
- Made changes (mostly cosmetic) based on linter feedback (#8).
- Updated the minimum required version of
github.com/stretchr/testify
tov1.6.0
to remove the indirect dependency ongopkg.in/yaml.v2
, which has multiple vulnerabilities (#7).
Our first open source release! 🎉
- Improved the documentation in the README and godoc comments.
-
The test group will now fail if the group object has an exported method that does not conform to the expected signature of a test/hook. This should further minimize subtest methods being left out of the group for having the wrong function signature.
-
Renamed
ParallelSeparator
toRunInParallelParentTestName
.
- The
PreGrouper
,PostGrouper
,PreTester
, andPostTester
hook interfaces are no longer exported.
testgroup.T.Run()
wrapstesting.T.Run()
, but passes your test a*testgroup.T
instead of a*testing.T
. This makes it convenient to usetestgroup.T
's helpers when writing table-driven tests.
-
The test group will now fail if:
- the group object has no exported methods
- the group object is passed by value, and it has exported methods with a pointer receiver
This should help catch mistakes when writing tests.
First release of the library.