cmd/go: go test -cover
hangs with import cycles
#9690
Labels
Milestone
go test -cover
hangs with import cycles
#9690
Hello Gophers!
go version go1.4.1 darwin/amd64
go test -cover .
in a package with import cycle in the tests.to reproduce
Fetch repository
github.com/aybabtme/hangcover
and run./reproduce.sh
.description
If a test file has the same package name as the package it tests,
and if that test file imports the package it tests:
Then running
go test github.com/aybabtme/hangcover
will fail with an import cycle error:But running
go test -cover github.com/aybabtme/hangcover
will hang:go test -cover github.com/aybabtme/hangcover ^C⏎
The text was updated successfully, but these errors were encountered: