summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/test_match_only_subtests.txt
blob: beea8953ca4d05a7f26922d79bd66b87a48406f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Matches only subtests
go test -run Test/Sub standalone_sub_test.go
! stdout '^ok.*\[no tests to run\]'
! stderr '^ok.*\[no tests to run\]'
stdout '^ok'

-- standalone_sub_test.go --
package standalone_sub_test

import "testing"

func Test(t *testing.T) {
	t.Run("Sub", func(t *testing.T) {})
}