gty-migrate-from-testify

command
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Command gty-migrate-from-testify migrates packages from testify/assert and testify/require to gotest.tools/assert.

$ go get gotest.tools/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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL