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

Comments

Projects
None yet
2 participants
@mwf
Copy link

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

This comment has been minimized.

Copy link
Member

commented Jul 19, 2018

Seems like a duplicate of #26317.

@mwf

This comment has been minimized.

Copy link
Author

commented Jul 19, 2018

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

@mwf mwf closed this Jul 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.