go test skip some test - Wed, Jul 29, 2020
go test skip some test
Its easy to skip single test or many test,just add +build
// +build all
package tags
import "testing"
func TestA(t *testing.T) {}
// +build all feature2
package tags
import "testing"
func TestA(t *testing.T) {}
go test -v -tags all
go test -v -tags "feature1 feature2"