You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that there is a problem with running test packages with specific build tags.
I have ginkgo specs in one of my packages and I'm trying to run tests in packages with specific build tags. When I'm doing it with go test -tags=my_tag ./... then only tests of underlying packages with the tag //go:build my_tag are run. But when I use ginkgo -v -tags=my_tag ./... or ginkgo build -tags=my_tag ./... then somewhy Ginkgo is trying to compile all packages with different build tags and fails with the error:
Failed to compile mypackage:
package /test/mypackage: build constraints exclude all Go files in /Users/testuser/go/src/test/mypackage
....
Ginkgo ran 12 suites in 3.456281959s (even though I have only one package with that tag)
There were failures detected in the following suites:
mypackage ./test/mypackage [Compilation failure]
Is it expected and I am doing something wrong or is it an existing issue?
This also happens if running ginkgo without tags flag but on ./... packages and some of the underlying packages have build tags.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hello!
It seems to me that there is a problem with running test packages with specific build tags.
I have ginkgo specs in one of my packages and I'm trying to run tests in packages with specific build tags. When I'm doing it with
go test -tags=my_tag ./...
then only tests of underlying packages with the tag//go:build my_tag
are run. But when I useginkgo -v -tags=my_tag ./...
orginkgo build -tags=my_tag ./...
then somewhy Ginkgo is trying to compile all packages with different build tags and fails with the error:Is it expected and I am doing something wrong or is it an existing issue?
This also happens if running ginkgo without
tags
flag but on./...
packages and some of the underlying packages have build tags.Thanks in advance!
The text was updated successfully, but these errors were encountered: