• 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
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...