+6
doc/languages-frameworks/go.section.md
+6
doc/languages-frameworks/go.section.md
···+This option allows to compile test binaries instead of the usual binaries produced by a package.+Go can [compile test into binaries](https://pkg.go.dev/cmd/go#hdr-Test_packages) using the `go test -c` command.+These binaries can then be executed at a later point (outside the Nix sandbox) to run the tests.+This is mostly useful for downstream consumers to run integration or end-to-end tests that won't work in the Nix sandbox, for example because they require network access.
+3
doc/redirects.json
+3
doc/redirects.json
+19
-3
pkgs/build-support/go/module.nix
+19
-3
pkgs/build-support/go/module.nix
·········
+9
pkgs/build-support/go/tests.nix
+9
pkgs/build-support/go/tests.nix
+3
pkgs/build-support/go/tests/build-test-binaries/go.mod
+3
pkgs/build-support/go/tests/build-test-binaries/go.mod
+7
pkgs/build-support/go/tests/build-test-binaries/main_test.go
+7
pkgs/build-support/go/tests/build-test-binaries/main_test.go
+34
pkgs/build-support/go/tests/build-test-binaries/package.nix
+34
pkgs/build-support/go/tests/build-test-binaries/package.nix
···
+2
pkgs/test/default.nix
+2
pkgs/test/default.nix
···