1# Matches only subtests 2go test -run Test/Sub standalone_sub_test.go 3! stdout '^ok.*\[no tests to run\]' 4! stderr '^ok.*\[no tests to run\]' 5stdout '^ok' 6 7-- standalone_sub_test.go -- 8package standalone_sub_test 9 10import "testing" 11 12func Test(t *testing.T) { 13 t.Run("Sub", func(t *testing.T) {}) 14}