Closed
Description
Given the following project:
- go.mod
- foo
- foo_test.go
- _bar
- bar_test.go
If I run go test ./...
, the underscored package (_bar) is skipped. I can run those tests by running go test ./_bar
so they're not completely disabled, but ...
evidently does not resolve underscored packages.
However the test resolver does resolve underscored packages. I think it's OK for underscored packages to appear in the test explorer, since Go does let you build/test those packages, but they should be skipped when running all tests. Though maybe there should be a setting to control whether they're resolved at all. If they are resolved but skipped, that would need to be handled by GoTestRunner.run
IIRC. This issue is reproduced by this project.
$ go list ./...
underscore-test/foo

Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done