• Brandon Bennett's avatar
    testing: add argument to list tests, benchmarks, and examples · ba8ff87d
    Brandon Bennett authored
    Some large testing/build systems require some form of test discovery before
    running tests.  This usually allows for analytics, history, and stats on a per
    tests basis.  Typically these systems are meant used in multi-language
    environments and the original source code is not known or available.
    
    This adds a -test.list option which takes a regular expression as an
    argument. Any tests, benchmarks, or examples that match that regular
    expression will be printed, one per line, to stdout and then the program
    will exit.
    
    Since subtests are named/discovered at run time this will only show
    top-level tests names and is a known limitation.
    
    Fixes #17209
    
    Change-Id: I7e607f5f4f084d623a1cae88a1f70e7d92b7f13e
    Reviewed-on: https://go-review.googlesource.com/41195Reviewed-by: 's avatarMarcel van Lohuizen <mpvl@golang.org>
    Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    ba8ff87d
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...