You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
testing: -bench regexp doesn't apply to subbenchmarks #15126
changed the title [-]testing: -bench regexp doesn't apply do subbenchmarks[/-][+]testing: -bench regexp doesn't apply to subbenchmarks[/+]on Apr 5, 2016
When I wrote https://go-review.googlesource.com/#/c/18370/, @adg asked me why not use a table-driven test. I replied in the Gerrit comments that I found regexps to be very useful for describing which tests to run.
It applies to both tests and benchmarks. The CL to take care of this (https://go-review.googlesource.com/#/c/19122/) is the last step of the subtest/subbenchmark implementation and has taken a bit of time to review. You will be able to select subtests and subbenchmarks as you suggested once this CL is in.
(the hanging was a silly thing that is fixed in tip, btw).
@bradfitz: that was, in fact, one of my main motivations to start doing this in the first place. Run enables a bunch of other functionality that people have asked for, but I'm looking forward to using this one myself. :)
Activity
[-]testing: -bench regexp doesn't apply do subbenchmarks[/-][+]testing: -bench regexp doesn't apply to subbenchmarks[/+]valyala commentedon Apr 6, 2016
@mpvl , could you look into this?
bradfitz commentedon Apr 6, 2016
Tests too, or just benchmarks?
When I wrote https://go-review.googlesource.com/#/c/18370/, @adg asked me why not use a table-driven test. I replied in the Gerrit comments that I found regexps to be very useful for describing which tests to run.
valyala commentedon Apr 6, 2016
I couldn't figure out how to run subtests. The following example hangs forever with go tip when
TestSubtestis executed:mpvl commentedon Apr 6, 2016
It applies to both tests and benchmarks. The CL to take care of this (https://go-review.googlesource.com/#/c/19122/) is the last step of the subtest/subbenchmark implementation and has taken a bit of time to review. You will be able to select subtests and subbenchmarks as you suggested once this CL is in.
(the hanging was a silly thing that is fixed in tip, btw).
mpvl commentedon Apr 8, 2016
@bradfitz: that was, in fact, one of my main motivations to start doing this in the first place. Run enables a bunch of other functionality that people have asked for, but I'm looking forward to using this one myself. :)
gopherbot commentedon Apr 8, 2016
CL https://golang.org/cl/19122 mentions this issue.
valyala commentedon Apr 22, 2016
The issue should be fixed now by the CL. @bradfitz , could you close it, since it didn't close automatically due to a typo in the CL description?
ianlancetaylor commentedon Apr 22, 2016
Closing. Thanks.