gty-migrate-from-testify command
Command gty-migrate-from-testify migrates packages from testify/assert and testify/require to gotest.tools/v3/assert.
$ go get gotest.tools/v3/assert/cmd/gty-migrate-from-testify
Usage:
gty-migrate-from-testify [OPTIONS] PACKAGE [PACKAGE...]
See --help for full usage.
To run on all packages (including external test packages) use:
go list \ -f '{{.ImportPath}} {{if .XTestGoFiles}}{{"\n"}}{{.ImportPath}}_test{{end}}' \ ./... | xargs gty-migrate-from-testify
- Version
- v3.5.2 (latest)
- Published
- Sep 5, 2024
- Platform
- linux/amd64
- Imports
- 17 packages
- Last checked
- 2 months ago –
Tools for package owners.