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

cmd/go: go test all runs tests from std packages #26482

Closed
mwf opened this issue Jul 19, 2018 · 2 comments
Closed

cmd/go: go test all runs tests from std packages #26482

mwf opened this issue Jul 19, 2018 · 2 comments

Comments

@mwf
Copy link

mwf commented Jul 19, 2018

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

Latest go devel: go version devel +d278f09333 Thu Jul 19 05:40:37 2018 +0000 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What did you do?

cd `mktemp -d`
go mod -init -module=example.com/test
cat <<EOD > main_test.go
package main

import "testing"

func Test(t *testing.T) {}
EOD
go test all

What did you expect to see?

The only project and dependency tests should run as described in https://research.swtch.com/vgo-tour

What did you see instead?

Std lib tests are running.

$ go test all
ok  	example.com/test	(cached)
ok  	testing	(cached)
ok  	bytes	2.515s
ok  	errors	(cached)
ok  	flag	0.037s
ok  	fmt	(cached)
?   	internal/race	[no test files]
ok  	io	(cached)
^Csignal: interrupt
@mwf mwf changed the title cmd/go: go test all runs tests of std lib cmd/go: go test all runs tests from std packages Jul 19, 2018
@mvdan
Copy link
Member

mvdan commented Jul 19, 2018

Seems like a duplicate of #26317.

@mwf
Copy link
Author

mwf commented Jul 19, 2018

Thanks! Didn't manage to find it, closing.

@mwf mwf closed this as completed Jul 19, 2018
@golang golang locked and limited conversation to collaborators Jul 19, 2019
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

3 participants