blob: 0d9491861e1b976ed5090b553f2dccf59f44468f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# 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) {})
}
|