# Matches only tests
go test -run Test standalone_test.go
! stdout '^ok.*\[no tests to run\]'
! stderr '^ok.*\[no tests to run\]'
stdout '^ok'

-- standalone_test.go --
package standalone_test

import "testing"

func Test(t *testing.T) {
}