build.assets/tooling/cmd/difftest/README.md
This tool finds tests which were changed since a previous git revision.
To see changes:
difftest diff --path . --branch master
To get go test flags to run only newly appeared tests:
difftest test --path . --branch master --exclude-updates
git diff $(git merge-base --fork-point <branch>)_test.go.Test* methods in every file.SHA1 hash of each method body.testify/suite supportTool detects suite start signatures like the following:
func TestSingleSuite(t *testing.T) { suite.Run(t, &SingleSuite{}) }
where suite references to testify/suite package, and t references testing package.
All methods related to a single suite must be in the same package (directory).
All suite parts must redside in a files matching *_test.go pattern.
If a test method has a receiver, which was not detected as a testify/suite previously, such method got skipped.