# Matches no tests with subtests | |
go test -run ThisWillNotMatch standalone_sub_test.go | |
stdout '^ok.*\[no tests to run\]' | |
-- standalone_sub_test.go -- | |
package standalone_sub_test | |
import "testing" | |
func Test(t *testing.T) { | |
t.Run("Sub", func(t *testing.T) {}) | |
} |