Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing: -run empty regex for first test not working #30767

Closed
santhosh-tekuri opened this issue Mar 12, 2019 · 1 comment
Closed

testing: -run empty regex for first test not working #30767

santhosh-tekuri opened this issue Mar 12, 2019 · 1 comment

Comments

@santhosh-tekuri
Copy link
Contributor

What version of Go are you using (go version)?

$ go version
go version go1.10.3 windows/amd64

Does this issue reproduce with the latest release?

dont know

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\rajag\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\rajag\go
set GORACE=
set GOROOT=C:\Installations\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Installations\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\rajag\AppData\Local\Temp\go-build546518454=/tmp/go-bu
ild -gno-record-gcc-switches

What did you do?

trying to use empty regex for begining of subtest path

$ go test -run /leader/quorumWait/unreachable
testing: warning: no tests to run
PASS
ok      github.com/santhosh-tekuri/raft 0.064s

$ go test -run Raft/leader/quorumWait/unreachable
PASS
ok      github.com/santhosh-tekuri/raft 2.362s

What did you expect to see?

with empty regex, the test should be run

What did you see instead?

with empty regex, it says "no tests to run"
with non empty regex, it runs the test

@santhosh-tekuri
Copy link
Contributor Author

closing. as in my case i dont have any top level tests.
and it is behaving as documented

@golang golang locked and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants