On Mon, Jan 3, 2022 at 9:48 PM Davi Marcondes Moreira
<davi.marcondes.more...@gmail.com> wrote:

> I've read the docs for https://pkg.go.dev/go/build and 
> https://pkg.go.dev/cmd/go#hdr-Build_constraints but I couldn't find anything 
> explicitly related to test execution.

It is not related to test execution. The build system does not
consider files with unsatisfied build constraints. If all test files
(*_test.go) are excluded by the build system the result is thus that
there are no test files. Hence the error message because it would be
bad if running `go test` with no test files succeeded silently.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-Urq_rzSY%3Dnm7e36bO5vp2X3GWWisqjc%2BKU4UT0%2BLKOfw%40mail.gmail.com.

Reply via email to