• Caio Marcelo de Oliveira Filho's avatar
    cmd/go, testing: indicate when no tests are run · ead08e91
    Caio Marcelo de Oliveira Filho authored
    For example, testing the current directory:
    
    	$ go test -run XXX
    	testing: warning: no tests to run
    	PASS
    	ok  	testing	0.013s
    	$
    
    And in a summary:
    
    	$ go test -run XXX testing
    	ok  	testing	0.013s [no tests to run]
    	$
    
    These make it easy to spot when the -run regexp hasn't matched anything
    or there are no tests. Previously the message was printed in the "current directory"
    case when there were no tests at all, but not for no matches, and either way
    was not surfaced in the directory list summary form.
    
    Fixes #15211.
    
    Change-Id: I1c82a423d6bd429fb991c9ca964c9d26c96fd3c5
    Reviewed-on: https://go-review.googlesource.com/22341Reviewed-by: 's avatarMarcel van Lohuizen <mpvl@golang.org>
    ead08e91
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...