Running tests¶
Run tests¶
- Recursively go through all the packages in the module
go test -v ./...
- Execute tests only for a subset of tests
Say you test function are named TestPackageCFuncA, TestPackageCFuncX, TestPackageAFuncB.
Issuing the following will only execute TestPackageCx test functions:
go test -v ./... -run 'PackageC'